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
<PackageReference Include="Net.Leksi.WpfMarkupExtension" Version="3.0.0" />
<PackageVersion Include="Net.Leksi.WpfMarkupExtension" Version="3.0.0" />
<PackageReference Include="Net.Leksi.WpfMarkupExtension" />
paket add Net.Leksi.WpfMarkupExtension --version 3.0.0
#r "nuget: Net.Leksi.WpfMarkupExtension, 3.0.0"
#:package Net.Leksi.WpfMarkupExtension@3.0.0
#addin nuget:?package=Net.Leksi.WpfMarkupExtension&version=3.0.0
#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 ofStaticResourceExtension, which allows using resources with parameters that can be replaced with different values in the markup.XamlServiceProviderCatcher- allows usingParameterizedResourcein code.BindingProxyis 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 theSystem.Windows.Data.IValueConverterandSystem.Windows.Data.IMultiValueConverterinterfaces for convenience.DataSwitch- used instead of a large number ofDataTriggerthat 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 theIMultiValueConverterinterface, which implements theobject Convert(object[] values, Type targetType, object parameter, CultureInfo culture)method, which is passed an array ofboolvaluesvaluesand a string describing the Boolean expression above them, asparameter. Returns the result of evaluating an expression.ConverterProxy- an adapter that is aMarkupExtensionfor convertersIValueConverterorIMultiValueConverter, which are notMarkupExtensionand cannot become one, since they are already inherited from another type, but are required there, whereMarkupExtensionis expected.
More info: https://github.com/Leksiqq/WpfMarkupExtension/wiki
| Product | Versions 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. net9.0-windows was computed. net10.0-windows was computed. |
-
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.
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.