Files
Toolkit2/Toolkit.UI.WinUI/Parameter.cs
T
2024-11-17 23:09:26 +00:00

30 lines
788 B
C#

using Microsoft.UI.Xaml;
using System.Xml.Linq;
namespace Toolkit.WinUI;
public class Parameter :
DependencyObject
{
public static readonly DependencyProperty KeyProperty =
DependencyProperty.Register(nameof(Key),
typeof(object), typeof(Parameter),
new PropertyMetadata(null));
public static readonly DependencyProperty ValueProperty =
DependencyProperty.Register(nameof(Value),
typeof(string), typeof(Parameter),
new PropertyMetadata(null));
public string Key
{
get => (string)GetValue(KeyProperty);
set => SetValue(KeyProperty, value);
}
public object Value
{
get => GetValue(ValueProperty);
set => SetValue(ValueProperty, value);
}
}