MyNet.Wpf 6.0.27

There is a newer version of this package available.
See the version list below for details.
dotnet add package MyNet.Wpf --version 6.0.27
                    
NuGet\Install-Package MyNet.Wpf -Version 6.0.27
                    
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="MyNet.Wpf" Version="6.0.27" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MyNet.Wpf" Version="6.0.27" />
                    
Directory.Packages.props
<PackageReference Include="MyNet.Wpf" />
                    
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 MyNet.Wpf --version 6.0.27
                    
#r "nuget: MyNet.Wpf, 6.0.27"
                    
#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 MyNet.Wpf@6.0.27
                    
#: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=MyNet.Wpf&version=6.0.27
                    
Install as a Cake Addin
#tool nuget:?package=MyNet.Wpf&version=6.0.27
                    
Install as a Cake Tool

<div id="top"></div>

<br /> <div align="center"> <img src="../../../assets/MyNetWpf.png" width="128" alt="MyNetWpf"> </div>

<h1 align="center">My .NET WPF</h1>

MIT License NuGet

A comprehensive library for advanced WPF controls, theming, dialogs, notifications, and UI helpers in .NET applications.

.NET 8.0 .NET 9.0 .NET 10.0 C#


Installation

Install via NuGet:

dotnet add package MyNet.Wpf

Features

  • Rich set of WPF controls and UI helpers
  • Theming and color scheme support
  • Dialogs, notifications, and toasts
  • ViewModel and navigation helpers
  • Resource locators and XAML utilities
  • Custom fonts and cursors
  • Integration with MahApps.Metro, MaterialDesignThemes, WPF-UI

Theming & Styles

MyNet.Wpf provides an advanced theming and styling system to customize the look and feel of your WPF applications.

Using Themes

To apply the default theme, add the following resource in your App.xaml:

<Application.Resources>
  <ResourceDictionary>
    <ResourceDictionary.MergedDictionaries>
      <ResourceDictionary Source="pack://application:,,,/MyNet.Wpf;component/Themes/MyNet.Theme.xaml" />
    </ResourceDictionary.MergedDictionaries>
  </ResourceDictionary>
</Application.Resources>

You can also merge your own resource dictionaries or override existing styles.

Customization

  • Styles are grouped in Themes/MyNet.Styles.xaml and can be extended or replaced.
  • Colors, fonts, and icons are customizable via XAML resources.
  • Common controls (Button, DataGrid, TabControl, etc.) benefit from modern and adaptive styles.

Example: Change Theme at Runtime

// Dynamically change the theme
Application.Current.Resources.MergedDictionaries.Clear();
Application.Current.Resources.MergedDictionaries.Add(
    new ResourceDictionary { Source = new Uri("pack://application:,,,/MyNet.Wpf;component/Themes/MyNet.Theme.xaml") }
);

Example Usage

Show a toast notification

using MyNet.Wpf.Toasting;

Toaster.Show("Hello from MyNet.Wpf!");

Use a custom dialog

using MyNet.Wpf.Dialogs;

var result = DialogService.Show<MyCustomDialog>();

Change theme at runtime

Application.Current.Resources.MergedDictionaries.Clear();
Application.Current.Resources.MergedDictionaries.Add(
  new ResourceDictionary { Source = new Uri("pack://application:,,,/MyNet.Wpf;component/Themes/MyNet.Theme.xaml") }
);

Use a custom style for a button

<Button Style="{StaticResource MyNet.Styles.Button.Elevation}" Content="Styled Button" />

Use a resource locator

using MyNet.Wpf.ResourceLocator;

var resource = ResourceLocator.GetResource("MyNet.Brushes.Positive");

License

Copyright © Stéphane ANDRE.

Distributed under the MIT License. See LICENSE for details.

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

NuGet packages (3)

Showing the top 3 NuGet packages that depend on MyNet.Wpf:

Package Downloads
MyNet.Wpf.Presentation

A comprehensive collection of controls, graphical elements, and views designed for accelerating WPF application development.

MyNet.Wpf.Web

Provides developers with powerful tools to seamlessly integrate web components into WPF applications.

MyNet.Wpf.DragAndDrop

Offers a robust set of tools for seamlessly integrating drag-and-drop functionality into WPF applications.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
6.0.48 137 9/8/2025
6.0.35 124 9/8/2025
6.0.27 97 9/7/2025
6.0.5 143 9/4/2024
6.0.4 95 9/4/2024
6.0.3 104 9/4/2024
6.0.2 91 9/3/2024
6.0.1 84 9/2/2024
6.0.0 91 9/2/2024
5.1.0 118 8/17/2024
5.0.12 113 8/12/2024
5.0.11 99 8/12/2024
5.0.10 141 8/12/2024
5.0.9 109 8/4/2024
5.0.8 102 8/3/2024
5.0.7 101 8/3/2024
5.0.6 114 8/3/2024
5.0.5 116 8/3/2024
5.0.3 100 8/3/2024
5.0.2 117 8/3/2024
5.0.1 110 8/3/2024
5.0.0 109 8/3/2024
4.9.4 123 8/1/2024
4.9.3 141 8/1/2024
4.9.2 126 8/1/2024
4.9.1 130 8/1/2024
4.9.0 131 8/1/2024
4.8.6 108 7/31/2024
4.8.5 113 7/31/2024
4.8.4 103 7/31/2024
4.8.3 96 7/31/2024
4.8.2 97 7/31/2024
4.8.1 110 7/30/2024
4.8.0 119 7/30/2024
4.7.1 112 7/30/2024
4.7.0 88 7/29/2024
4.6.0 113 7/29/2024
4.5.0 130 7/23/2024
4.4.2 159 7/18/2024
4.4.1 153 7/4/2024
4.4.0 136 7/2/2024
4.3.0 138 6/21/2024
4.2.1 148 6/16/2024
4.2.0 163 6/13/2024
4.1.0 127 6/11/2024
4.0.3 133 6/8/2024
4.0.2 132 6/7/2024
4.0.1 147 6/5/2024
4.0.0 150 6/5/2024
3.0.0 164 5/25/2024
2.2.0 143 5/21/2024
2.1.0 139 5/20/2024
2.0.0 142 5/14/2024
1.1.0 150 5/14/2024
1.0.0 170 5/5/2024