Eto.Forms:用于.NET中桌面和移动应用程序的跨平台GUI框架

网友投稿 2115 2022-10-11

Eto.Forms:用于.NET中桌面和移动应用程序的跨平台GUI框架

Eto.Forms:用于.NET中桌面和移动应用程序的跨平台GUI框架

Eto.Forms

A cross platform desktop and mobile user interface framework

Description

This framework can be used to build applications that run across multiple platforms using their native toolkit, with an easy to use API. This will make your applications look and work as a native application on all platforms, using a single UI codebase.

For advanced scenarios, you can take advantage of each platform's capabilities by wrapping your common UI in a larger application, or even create your own high-level controls with a custom implementations per platform.

This framework currently supports creating Desktop applications that work across Windows Forms, WPF, MonoMac, and GTK#. There is a Mobile/iOS port in the works, but is considered incomplete.

This framework was built so that using it in .NET is natural. For example, a simple hello-world application might look like:

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 in a F# script:

#load ".paket/load/eto.platform.windows.fsx"// see https://fsprojects.github.io/Paket/paket-generate-load-scripts.htmlopen Eto.Drawingopen Eto.Formstype MyForm() as this = inherit Form() do this.Title <- "My Cross-Platform App" this.ClientSize <- Size (200, 200) this.Content <- new Label(Text = "Hello F# World!")Eto.Platform.Initialize(Eto.Platforms.WinForms)let app = new Application()let form = new MyForm()form.Show()

Getting Started

To begin creating apps using Eto.Forms, follow the Quick Start Guide.

To compile or contribute to Eto.Forms, read the Contributing Guide.

Applications

MonoGame Pipeline Tool - Content manager for MonoGameManager - Accounting SoftwarePabloDraw - Character based drawing applicationNotedown - Note taking applicationEto.Test - Application to test the functionality of each widgetDWSIM - Chemical Process SimulatorTermission - Cross-platform Serial/TCP Terminal with Scriptable Auto-ResponseVisual SEO Studio - Technical SEO Auditing ToolRegexTestBench - Cross-platform regex testing tool in .NET CoreRegexFileSearcher - Cross-platform regex file searching tool in .NET Core

Assemblies

Your project only needs to reference Eto.dll, and include the corresponding platform assembly that you wish to target. To run on a Mac platform, you need to bundle your app.

Eto.dll - Eto.Forms (UI), Eto.Drawing (Graphics), and platform loadingEto.Mac.dll - MonoMac platform for OS X using 32-bit monoEto.Mac64.dll - MonoMac platform for OS X using 64-bit monoEto.XamMac.dll - Xamarin.Mac Classic platform for OS X to embed monoEto.XamMac2.dll - Xamarin.Mac Unified platform for OS X to embed monoEto.WinForms.dll - Windows Forms platform using GDI+ for graphicsEto.Direct2D.dll - Windows Forms platform using Direct2D for graphicsEto.Wpf.dll - Windows Presentation Foundation platformEto.Gtk.dll - Gtk+3 platform for Mac, Windows, and Linux.Eto.Gtk2.dll - Gtk2 platform using gtk-sharp2 on Mac, Windows, and Linux.Eto.Gtk3.dll - [deprecated] Gtk3 platform for running on Linux with gtk-sharp3 packageEto.iOS.dll - Xamarin.iOS platformEto.Android.dll - Xamarin.Android platform

Currently supported targets

iOS using Xamarin.iOSOS X: MonoMac or Xamarin.MacLinux: GTK# 2 or 3Windows: Windows Forms (using GDI or Direct2D) or WPF

Under development

These platforms are currently in development. Any eager bodies willing to help feel free to do so!

Android using Xamarin.Android (Eto.Android)Windows 8.x and Windows Phone (Eto.WinRT)

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:docker-compose 文件参考
下一篇:odoo 产品上的币别
相关文章

 发表评论

暂时没有评论,来抢沙发吧~