using Avalonia; using Avalonia.Controls; namespace StabilityMatrix.Avalonia.Controls.SelectableImageCard; public class SelectableImageButton : Button { public static readonly StyledProperty IsSelectedProperty = CheckBox.IsCheckedProperty.AddOwner(); public static readonly StyledProperty SourceProperty = BetterAdvancedImage.SourceProperty.AddOwner(); public bool? IsSelected { get => GetValue(IsSelectedProperty); set => SetValue(IsSelectedProperty, value); } public string? Source { get => GetValue(SourceProperty); set => SetValue(SourceProperty, value); } }