.eto 字体下载

.eto 字体下载

This is one of those "Did you know you could do THAT?" Many folks have figured out that C#/F#/.NET is cross-platform and open0source and runs on basically any operating system. People are using it to create micro services, web sites, and webAPI's all over. Not to mention iPhone/Android apps with Xamarin and video games with Unity and MonoGame.

这就是“您知道您可以做的吗? ”之一。许多人已经发现C#/ F#/。NET是跨平台和open0source的,并且基本上可以在任何操作系统上运行。 人们正在使用它来创建微服务,网站和webAPI。 更不用说具有Xamarin的iPhone / Android应用程序以及具有Unity和MonoGame的视频游戏。

But what about cross platform UIs?

但是跨平台的用户界面呢?

While not officially supported by Microsoft - you can do some awesome stuff...as is how Open Source is supposed to work! Remember that there's a family of .NET Runtimes now, there's the .NET Framework on Windows, there's xplat .NET Core, and there's xplat Mono.

尽管没有得到Microsoft的正式支持,但是您可以做一些很棒的事情……就像开源应该是这样工作的! 请记住,现在有一个.NET运行时系列,Windows上有.NET Framework,xplat .NET Core,还有xplat Mono。

Eto.Forms has been in development since 2012 and is a cross-platform framework for creating GUI (Graphical User Interface, natch) applications with .NET that run across multiple platforms using their native toolkit. Not like Java in the 90s with custom painted buttons on canvas.

Eto.Forms自2012年以来一直在开发中,它是一个跨平台框架,用于使用.NET创建使用本机工具包在多个平台上运行的.NET GUI(图形用户界面,natch)应用程序。 不像90年代的Java在画布上带有自定义绘制按钮。

It's being used for real stuff! In fact, PabloDraw is an Ansi/Ascii text editor that you didn't know you needed in your life. But you do. It runs on Windows, Mac, and Linux and was written using Eto.Forms but has a native UI on each platform. Be sure to check out Curtis Wensley's Twitter account for some cool examples of what PabloDraw and Eto.Forms can do!

它被用于真实的东西! 实际上, PabloDraw是Ansi / Ascii文本编辑器,您一生都不知道自己需要什么。 但你做了。 它可以在Windows,Mac和Linux上运行,并使用Eto.Forms编写,但是在每个平台上都有一个本机UI。 请务必查看Curtis Wensley的Twitter帐户,以获取有关PabloDraw和Eto.Forms可以执行的操作的出色示例!

  • OS X: MonoMac or Xamarin.Mac (and also iOS via Xamarin)

    OS X:MonoMac或Xamarin.Mac(以及通过Xamarin的iOS)
  • Linux: GTK# 2 or 3

    Linux:GTK#2或3
  • Windows: Windows Forms (using GDI or Direct2D) or WPF

    Windows:Windows窗体(使用GDI或Direct2D)或WPF

Here's an example Hello World. Note that it's not just Code First, you can also use Xaml, or even Json (.jeto) to layout your forms!

这是Hello World的示例。 请注意,这不仅是Code First,还可以使用Xaml甚至Json(.jeto)来布局表单!

using Eto.Forms;
using Eto.Drawing;

public class MyForm : Form
{
public MyForm ()
{
Title = "My Cross-Platform App";
ClientSize = new Size(200, 200);
Content = new Label { Text = "Hello World!" };
}

[STAThread]
static void Main()
{
new Application().Run(new MyForm());
}
}

Or I can just File | New Project with their Visual Studio Extension. You should definitely give it a try.

或者我也可以| File | 带有Visual Studio扩展的新项目。 您绝对应该尝试一下。

image

Even on the same platform (Windows in the below example) amazingly Eto.Forms can use whatever Native Controls you prefer. Here's a great example zip that has precompiled test apps.

即使在同一平台(下例中为Windows)上,Eto.Forms也可以使用您喜欢的任何本机控件。 这是一个很好的示例zip,其中已预编译了测试应用程序

WinForms, WPF, and Direct2D apps

Once you've installed a new version of Mono on Ubuntu, you can run the same sample as Gtk3, as I'm doing here in a VM. AMAZING.

在Ubuntu上安装了新版本的Mono后,您可以像在VM中一样在Gtk3上运行相同的示例。 惊人。

image

Here's some example applications that are in the wild, using Eto.Forms:

这是一些使用Eto.Forms的示例应用程序:

There's so much cool stuff happening in open source .NET right now, and Eto.Forms is actively looking for help. Go check out their excellent Wiki, read the Tutorials, and maybe get involved!

现在,开源.NET中发生了很多有趣的事情,Eto.Forms也在积极寻求帮助。 去看看他们出色的Wiki ,阅读教程,也许会参与进来!

翻译自: https://www.hanselman.com/blog/crossplatform-guis-with-open-source-net-using-etoforms

.eto 字体下载

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐