Parameter improvements

This commit is contained in:
TheXamlGuy
2024-05-26 23:29:50 +01:00
parent baf504b815
commit cfc79e26f0
11 changed files with 136 additions and 115 deletions
+25
View File
@@ -0,0 +1,25 @@
using Avalonia;
namespace Toolkit.UI.Avalonia;
public class Parameter :
AvaloniaObject
{
public static readonly StyledProperty<string> KeyProperty =
AvaloniaProperty.Register<Parameter, string>(nameof(Key));
public static readonly StyledProperty<object> ValueProperty =
AvaloniaProperty.Register<Parameter, object>(nameof(Value));
public string Key
{
get => GetValue(KeyProperty);
set => SetValue(KeyProperty, value);
}
public object Value
{
get => GetValue(ValueProperty);
set => SetValue(ValueProperty, value);
}
}