Meziantou.Framework.WPF 2.0.3

Prefix Reserved
dotnet add package Meziantou.Framework.WPF --version 2.0.3
                    
NuGet\Install-Package Meziantou.Framework.WPF -Version 2.0.3
                    
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="Meziantou.Framework.WPF" Version="2.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meziantou.Framework.WPF" Version="2.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Meziantou.Framework.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 Meziantou.Framework.WPF --version 2.0.3
                    
#r "nuget: Meziantou.Framework.WPF, 2.0.3"
                    
#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 Meziantou.Framework.WPF@2.0.3
                    
#: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=Meziantou.Framework.WPF&version=2.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Meziantou.Framework.WPF&version=2.0.3
                    
Install as a Cake Tool

Meziantou.Framework.WPF

NuGet

Utilities for WPF applications, including:

  • DelegateCommand for synchronous and asynchronous commands
  • ConcurrentObservableCollection<T> for thread-safe collections that can be bound to WPF controls
  • Enum markup extensions (EnumValuesExtension, LocalizedEnumValuesExtension)
  • BooleanToValueConverter for flexible bool-to-value conversion in bindings
  • Dispatcher helpers (SwitchToDispatcherThread)

Install

dotnet add package Meziantou.Framework.WPF

Usage

Commands

using Meziantou.Framework.WPF;

public sealed class SampleViewModel
{
    public IDelegateCommand SaveCommand { get; } = DelegateCommand.Create(
        execute: () => Console.WriteLine("Saved"),
        canExecute: () => true);
}

Thread-safe bindable collection

using Meziantou.Framework.WPF.Collections;

var collection = new ConcurrentObservableCollection<string>();
listBox.ItemsSource = collection.AsObservable;

await Task.Run(() => collection.Add("Item from background thread"));

Enum values in XAML

<Window
    xmlns:wpf="clr-namespace:Meziantou.Framework.WPF;assembly=Meziantou.Framework.WPF">
    <ComboBox
        ItemsSource="{wpf:LocalizedEnumValues {x:Type local:MyEnum}}"
        DisplayMemberPath="Name"
        SelectedValuePath="Value" />
</Window>

Boolean converter

<Window.Resources>
    <wpf:BooleanToValueConverter
        x:Key="BoolToVisibility"
        TrueValue="{x:Static Visibility.Visible}"
        FalseValue="{x:Static Visibility.Collapsed}" />
</Window.Resources>
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.  net11.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0-windows7.0

    • No dependencies.
  • net11.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.
  • net9.0-windows7.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Meziantou.Framework.WPF:

Package Downloads
ParticlesInspector.Algo

1.更新测试

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.0.3 207 5/31/2026
2.0.2 136 5/23/2026
2.0.1 230 5/11/2026
2.0.0 485 5/6/2026
1.5.25 234 4/25/2026
1.5.24 394 3/29/2026
1.5.23 711 3/15/2026
1.5.22 309 2/22/2026
1.5.21 1,696 1/18/2026
1.5.20 364 12/14/2025
1.5.19 1,516 11/16/2025
1.5.18 413 11/2/2025
1.5.17 482 10/19/2025
1.5.16 1,257 9/16/2025
1.5.15 320 9/3/2025
1.5.14 370 8/10/2025
1.5.13 5,417 7/13/2025
1.5.12 1,322 6/15/2025
1.5.11 542 5/18/2025
1.5.10 2,214 4/20/2025
Loading failed