Meadow.Foundation.Displays.WinForms 2.5.0

There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Meadow.Foundation.Displays.WinForms --version 2.5.0
                    
NuGet\Install-Package Meadow.Foundation.Displays.WinForms -Version 2.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Meadow.Foundation.Displays.WinForms" Version="2.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meadow.Foundation.Displays.WinForms" Version="2.5.0" />
                    
Directory.Packages.props
<PackageReference Include="Meadow.Foundation.Displays.WinForms" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meadow.Foundation.Displays.WinForms --version 2.5.0
                    
#r "nuget: Meadow.Foundation.Displays.WinForms, 2.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Meadow.Foundation.Displays.WinForms@2.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meadow.Foundation.Displays.WinForms&version=2.5.0
                    
Install as a Cake Addin
#tool nuget:?package=Meadow.Foundation.Displays.WinForms&version=2.5.0
                    
Install as a Cake Tool

Meadow.Foundation.Displays.WinForms

Windows Forms display driver for Meadow

The WinForms library is included in the Meadow.Foundation.Displays.WinForms nuget package and is designed for the Wilderness Labs Meadow .NET IoT platform.

This driver is part of the Meadow.Foundation peripherals library, an open-source repository of drivers and libraries that streamline and simplify adding hardware to your C# .NET Meadow IoT applications.

For more information on developing for Meadow, visit developer.wildernesslabs.co.

To view all Wilderness Labs open-source projects, including samples, visit github.com/wildernesslabs.

Installation

You can install the library from within Visual studio using the the NuGet Package Manager or from the command line using the .NET CLI:

dotnet add package Meadow.Foundation.Displays.WinForms

Usage

public class MeadowApp : App<Meadow.Windows>
{
WinFormsDisplay? display;
MicroGraphics graphics = default!;

public override Task Initialize()
{
    display = new WinFormsDisplay(640, 480, displayScale: 1f);

    graphics = new MicroGraphics(display)
    {
        CurrentFont = new Font16x24(),
        Stroke = 1
    };

    _ = Task.Run(() =>
    {
        graphics.Clear();

        graphics.DrawText(10, 10, "16x24 font on WinForms", Color.White);

        graphics.DrawText(10, 40, "1234567890!@#$%^&*(){}[],./<>?;':", Color.LawnGreen);
        graphics.DrawText(10, 70, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", Color.Cyan);
        graphics.DrawText(10, 100, "abcdefghijklmnopqrstuvwxyz", Color.Yellow);
        graphics.DrawText(10, 130, "Temp: 21.5°C", Color.Orange);

        graphics.DrawTriangle(10, 220, 50, 260, 10, 260, Color.Red);
        graphics.DrawRectangle(20, 185, 80, 40, Color.Yellow, false);
        graphics.DrawCircle(50, 240, 40, Color.Blue, false);

        graphics.Show();
    });

    return Task.CompletedTask;
}

public override Task Run()
{
    Application.Run(display!);

    return Task.CompletedTask;
}

public static async Task Main(string[] args)
{
    Application.EnableVisualStyles();
    Application.SetCompatibleTextRenderingDefault(false);
    ApplicationConfiguration.Initialize();

    await MeadowOS.Start(args);
}
}

How to Contribute

Need Help?

If you have questions or need assistance, please join the Wilderness Labs community on Slack.

About Meadow

Meadow is a complete, IoT platform with defense-grade security that runs full .NET applications on embeddable microcontrollers and Linux single-board computers including Raspberry Pi and NVIDIA Jetson.

Build

Use the full .NET platform and tooling such as Visual Studio and plug-and-play hardware drivers to painlessly build IoT solutions.

Connect

Utilize native support for WiFi, Ethernet, and Cellular connectivity to send sensor data to the Cloud and remotely control your peripherals.

Deploy

Instantly deploy and manage your fleet in the cloud for OtA, health-monitoring, logs, command + control, and enterprise backend integrations.

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.5.0.12-beta 78 4/25/2026
2.5.0.11-beta 96 3/17/2026
2.5.0.10-beta 90 3/11/2026
2.5.0.9-beta 85 3/6/2026
2.5.0.8-beta 93 2/28/2026
2.5.0.7-beta 90 2/27/2026
2.5.0.6-beta 95 2/24/2026
2.5.0.5-beta 181 12/23/2025
2.5.0.4-beta 171 12/20/2025
2.5.0.3-beta 273 12/17/2025
2.5.0.2-beta 433 12/9/2025
2.5.0.1-beta 432 12/9/2025
2.5.0 219 11/24/2025
2.4.0.15-beta 395 11/20/2025
2.4.0.14-beta 133 11/7/2025
2.4.0.13-beta 188 11/6/2025
2.4.0.12-beta 192 11/5/2025
2.4.0.11-beta 187 10/28/2025
2.4.0.10-beta 179 10/20/2025
2.4.0.9-beta 116 10/18/2025
Loading failed