Vue-like computed in .NET XAML markup.
$ dotnet add package ComputedConverters.WPFComputedConverters provides you with XAML markup that allows you to write inline converters (Vue-like computed method) and expand some converters commonly used.
Salad bowl project here.
Computed series library
| Package/Framework | WPF | Avalonia |
|---|---|---|
| ComputedConverters | TBD | |
| ComputedAnimations | No Plan | |
| ComputedBehaviors | No Plan |
ValueConverters library
| Package/Framework | WPF | Avalonia |
|---|---|---|
| ValueConverters |
Add XML namespace to your XAML file:
<Application xmlns:a="http://schemas.github.com/computedanimations/2024/xaml"
xmlns:b="http://schemas.github.com/computedbehaviors/2024/xaml"
xmlns:c="http://schemas.github.com/computedconverters/2024/xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<a:ComputedAnimationsResources />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
Documents/ComputedBehaviors.md
Documents/ComputedAnimations.md
Examples of projects using this library:
emako/ComputedConverters.WPF.Test
Idea list here, and standing on the shoulders of giants.
JohannesMoersch/QuickConverter
thomasgalliker/ValueConverters.NET