Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leksiqq/wpfmarkupextension
Some extensions for XAML markup.
https://github.com/leksiqq/wpfmarkupextension
datatrigger-switch extension parametrized-resource style-combiner wpf
Last synced: about 23 hours ago
JSON representation
Some extensions for XAML markup.
- Host: GitHub
- URL: https://github.com/leksiqq/wpfmarkupextension
- Owner: Leksiqq
- License: mit
- Created: 2023-03-01T11:34:41.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-07-25T15:38:10.000Z (7 months ago)
- Last Synced: 2025-01-31T07:36:08.053Z (15 days ago)
- Topics: datatrigger-switch, extension, parametrized-resource, style-combiner, wpf
- Language: C#
- Homepage: https://github.com/Leksiqq/WpfMarkupExtension/wiki
- Size: 134 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**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](https://github.com/Leksiqq/WpfMarkupExtension/wiki)