Net.Leksi.WpfMarkupExtension
2.4.0
See the version list below for details.
dotnet add package Net.Leksi.WpfMarkupExtension --version 2.4.0
NuGet\Install-Package Net.Leksi.WpfMarkupExtension -Version 2.4.0
<PackageReference Include="Net.Leksi.WpfMarkupExtension" Version="2.4.0" />
paket add Net.Leksi.WpfMarkupExtension --version 2.4.0
#r "nuget: Net.Leksi.WpfMarkupExtension, 2.4.0"
// Install Net.Leksi.WpfMarkupExtension as a Cake Addin #addin nuget:?package=Net.Leksi.WpfMarkupExtension&version=2.4.0 // Install Net.Leksi.WpfMarkupExtension as a Cake Tool #tool nuget:?package=Net.Leksi.WpfMarkupExtension&version=2.4.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 usingParameterizedResource
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 theSystem.Windows.Data.IValueConverter
andSystem.Windows.Data.IMultiValueConverter
interfaces for convenience.DataSwitch
- used instead of a large number ofDataTrigger
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 theIMultiValueConverter
interface, which implements theobject Convert(object[] values, Type targetType, object parameter, CultureInfo culture)
method, which is passed an array ofbool
valuesvalues
and a string describing the Boolean expression above them, asparameter
. Returns the result of evaluating an expression.ConverterProxy
- an adapter that is aMarkupExtension
for convertersIValueConverter
orIMultiValueConverter
, which are notMarkupExtension
and cannot become one, since they are already inherited from another type, but are required there, whereMarkupExtension
is 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. |
-
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.
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.