Net.Leksi.WpfMarkupExtension 3.0.0

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

// Install Net.Leksi.WpfMarkupExtension as a Cake Tool
#tool nuget:?package=Net.Leksi.WpfMarkupExtension&version=3.0.0                

Attention! This article, as well as this announcement, are automatically translated from Russian.

The Net.Leksi.WpfMarkupExtension library is designed to extend WPF markup. It contains several classes that you may find useful when developing XAML. All classes are contained in the Net.Leksi.WpfMarkup namespace.

  • StyleCombiner - allows you to apply multiple styles to an element without inheritance.
  • ParameterizedResource - analogue of StaticResourceExtension, which allows using resources with parameters that can be replaced with different values in the markup.
  • XamlServiceProviderCatcher - allows using ParameterizedResource in code.
  • BindingProxy is a universal resource that can serve as a link to any object or act as a binding.
  • BindingProxyMarkup - used when you need to place a binding value where a markup extension is required.
  • IUniversalConverter - combines the System.Windows.Data.IValueConverter and System.Windows.Data.IMultiValueConverter interfaces for convenience.
  • DataSwitch - used instead of a large number of DataTrigger that have the same binding but different trigger values. Reduces both the XAML text and the number of calls to the binding source.
  • BoolExpressionConverter - incomplete implementation of the IMultiValueConverter interface, which implements the object Convert(object[] values, Type targetType, object parameter, CultureInfo culture) method, which is passed an array of bool values values and a string describing the Boolean expression above them, as parameter. Returns the result of evaluating an expression.
  • ConverterProxy - an adapter that is a MarkupExtension for converters IValueConverter or IMultiValueConverter, which are not MarkupExtension and cannot become one, since they are already inherited from another type, but are required there, where MarkupExtension is expected.

More info: https://github.com/Leksiqq/WpfMarkupExtension/wiki

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.  net8.0-windows7.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0-windows7.0

    • No dependencies.
  • net8.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
3.0.0 110 7/20/2024
2.4.0 102 6/6/2024

3.0.0         XamlServiceProviderCatcher provides ServiceProvider now.

     2.4.0         ConverterProxy added.

     2.3.0         Changed ParameterizedResourceExtension Strict mode default assignment.

     2.2.2         Changed ParameterizedResourceExtension to enable use null replace parameters.

     2.2.0         Added BoolExpressionConverter.

     2.0.2         The empty parameter missing bug fixed.

     2.0.1         The IUniversalParameter was completely rethougt. The XamlServiceProviderCatcher was added to use The ParameterizedResourceExtension at code.

     1.1.11        Added static method IUniversalParameter.SplitParameter.

     1.1.9         Changed interface IUniversalConverter, removed class UniversalConverterParameter because it did not live up to expectations.

     1.1.3-1.1.5   Fixed bugs and updated documentation.

     1.1.2         Removed class RootObject, added more general class BindingMarkup.

     1.0.1.1       Added classes: IUniversalConverter, RootObject. Added properties to BindingProxy: Name, Type.

     1.0.0.12      Added a possibility to provide value of the parameter itself.