using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; using Avalonia.Media; namespace detect.gui.Controls; public partial class StateItem : UserControl { public static readonly StyledProperty TextProperty = AvaloniaProperty.Register(nameof(Text)); public string Text { get => GetValue(TextProperty); set => SetValue(TextProperty, value); } public static readonly StyledProperty ItemColorProperty = AvaloniaProperty.Register(nameof(ItemColor)); public IBrush? ItemColor { get => GetValue(ItemColorProperty); set => SetValue(ItemColorProperty, value); } public StateItem() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } }