Parameter improvements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user