All guides
No guide matches your search.
Get started with Mordex Components
Add the Mordex.Windows package to a .NET 10 WinForms project, place a control on a form and pick a theme for the whole program.
On this page
What you need
- Windows.
- The .NET 10 SDK.
- A WinForms project that targets
net10.0-windows. - Visual Studio, if you want to place controls on the design surface.
Add the package
The controls ship as one NuGet package, Mordex.Windows. Add it from the folder of your project:
dotnet add package Mordex.WindowsIn Visual Studio you can also open Manage NuGet Packages, search for Mordex.Windows and install it.
Place a control on a form
After the package is installed, build the project once. The Mordex controls then show in the Visual Studio toolbox. Drag a control, such as MxDataGrid, onto your form. The designer guide shows what you can do on the design surface.
You can also create a control in code:
using System.Windows.Forms;
using Mordex.Windows.UI.Controls;
var button = new MxButton { Text = "Save", Left = 12, Top = 12 };
Controls.Add(button);Pick a theme
All controls follow one theme. Set it once when the program starts, before the first form opens:
using Mordex.Windows.Common;
MxThemeManager.DefaultTheme = MxThemeManager.Find("Windows 11 Dark");Controls that are already open repaint by themselves. The themes guide lists the themes and shows how to follow the light or dark setting of Windows.
Find your way in the guides
Was this page helpful?