WpfEnumMenuItem 0.4.0

dotnet add package WpfEnumMenuItem --version 0.4.0                
NuGet\Install-Package WpfEnumMenuItem -Version 0.4.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="WpfEnumMenuItem" Version="0.4.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WpfEnumMenuItem --version 0.4.0                
#r "nuget: WpfEnumMenuItem, 0.4.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.
// Install WpfEnumMenuItem as a Cake Addin
#addin nuget:?package=WpfEnumMenuItem&version=0.4.0

// Install WpfEnumMenuItem as a Cake Tool
#tool nuget:?package=WpfEnumMenuItem&version=0.4.0                

WpfEnumMenuItem NuGet

A drop-in replacement for MenuItem that binds to an enum.

// Declare the enum.
public enum MyEnumType
{
    One,

    Two,

    // Automatically reads the attribute.
    [Description("Third item!")]
    Three,

    Four,
}

// The property we'll bind to.
public MyEnumType MyEnumProperty { get; set; }


<Menu DataContext="...">
    <emi:EnumMenuItem Header="MyEnum" Binding="{Binding MyEnumProperty}" />
</Menu>

Screenshot

Build and run the ExampleApp for a working demo.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.

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
0.4.0 494 6/8/2022
0.3.0 426 5/25/2022
0.2.0 360 10/6/2021
0.1.0 324 10/1/2021