Gtk.Drawing
1.4.2464.26236
dotnet add package Gtk.Drawing --version 1.4.2464.26236
NuGet\Install-Package Gtk.Drawing -Version 1.4.2464.26236
<PackageReference Include="Gtk.Drawing" Version="1.4.2464.26236" />
<PackageVersion Include="Gtk.Drawing" Version="1.4.2464.26236" />
<PackageReference Include="Gtk.Drawing" />
paket add Gtk.Drawing --version 1.4.2464.26236
#r "nuget: Gtk.Drawing, 1.4.2464.26236"
#:package Gtk.Drawing@1.4.2464.26236
#addin nuget:?package=Gtk.Drawing&version=1.4.2464.26236
#tool nuget:?package=Gtk.Drawing&version=1.4.2464.26236
Gtk.Windows.Forms
Introduction
Native Visual Studio development, no learning curve, compile once, run cross-platform. A cross-platform (Windows, Linux, macOS) C# desktop application framework based on GTK components. Using this framework, projects can be developed in Visual Studio with the native C# WinForms designer, using the same properties, methods, and events as standard WinForms. Development is done entirely with familiar C# techniques — no additional learning required.
Compile once and run across platforms. It makes cross-platform WinForms application development easy and enables existing C# WinForms applications to be upgraded to cross-platform applications with minimal effort.
Details: Details
Platform notes and non-goals
The library targets compile-once, behave-the-same for mainstream WinForms code. A few areas are Windows- or Win32-bound by nature and are deliberately not implemented — an application that depends on them is not portable to the GTK substrate. They are listed here so the boundary is known up front rather than discovered in production:
- Win32 message pump and native windows.
Control.WndProc/DefWndProcthrowPlatformNotSupportedException;NativeWindow,SendKeysandIMessageFilter-driven pumping are not supported.Control.Handlereturns a GTK widget handle, not anHWND. - COM / ActiveX.
AxHostand the COM interop surface are Windows-only by definition. - EMF/WMF metafiles. The types exist but the Windows record format has no cross-platform playback.
- Legacy controls. The pre-2.0
DataGridfamily andToolBar/ToolBarButtonare superseded byDataGridViewandToolStrip. - GDI+
Imaging.Effects(.NET 8+) and the .NET 9+ dark-mode surface are not implemented.
Web / HTML hosting is present, with one design consequence. WebBrowser, HtmlDocument,
HtmlElement, HtmlWindow and the rest drive WebKitGTK 6.0 on Linux and macOS, and the Microsoft Edge
WebView2 runtime on Windows through the companion package Gtk.Windows.Forms.WebView2. Where neither is
installed the control still constructs and still raises its navigation events, showing a message naming
what to install. Both engines run the page out of process, unlike the in-process Internet Explorer
real WinForms hosted, so HtmlDocument/HtmlElement getters read a cached snapshot of the page and
InvokeScript/InvokeMember post the call and return null. Gtk.Windows.Extensions carries the
asynchronous siblings that do return a value. The full list is in EMULATION-GAPS.md §2.8.
A small number of members exist but deviate from Windows behaviour by necessity — for example
Control.CreateGraphics() returns a deferred (next-paint) surface rather than an immediate-mode DC, and
Form.TransparencyKey emulates only the whole-form-background case, not per-pixel keying. These and other
substrate-bound deviations are catalogued in the project's EMULATION-GAPS.md; the measured API surface is
tracked in API-COMPLETENESS.md.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Net4x.GtkSharp (>= 4.22.4.26229)
- System.Memory (>= 4.6.0)
- System.Resources.Extensions (>= 4.6.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Gtk.Drawing:
| Package | Downloads |
|---|---|
|
Gtk.Windows.Forms
It is a cross-platform interface component developed based on GTK components and compatible with the native C# control winform interface. Use this component GtkSystem.Drawing to compile once and run across platforms windows/linux/macos. Update platform: https://pieroviano@bitbucket.org/piero-viano/net4x.gtk.windows.forms.git Based on GTKSystem.Windows.Forms: https://www.gtkapp.com; https://gitee.com/easywebfactory/gtksystem-windows-forms; https://github.com/easywebfactory/gtksystem-windows-forms; |
|
|
Gtk.Windows.Forms.Base
It is a cross-platform interface component developed based on GTK components and compatible with the native C# control winform interface. Use this component GtkSystem.Drawing to compile once and run across platforms windows/linux/macos. Update platform: https://pieroviano@bitbucket.org/piero-viano/net4x.gtk.windows.forms.git Based on GTKSystem.Windows.Forms: https://www.gtkapp.com; https://gitee.com/easywebfactory/gtksystem-windows-forms; https://github.com/easywebfactory/gtksystem-windows-forms; |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.4.2464.26236 | 71 | 8/24/2026 |
| 1.3.2464.26229 | 163 | 8/16/2026 |
| 1.3.2464.26205 | 180 | 7/26/2026 |
| 1.3.24.26204 | 212 | 7/25/2026 |
| 1.3.24.26203 | 107 | 7/22/2026 |
| 1.3.24.26202 | 182 | 7/22/2026 |
| 1.3.24.26085 | 179 | 3/31/2026 |
| 1.3.24.26084 | 182 | 3/31/2026 |
C# interface cross-platform development component gtk-windows-forms