You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
712 B
26 lines
712 B
1 year ago
|
using Avalonia;
|
||
|
using Avalonia.Controls;
|
||
|
|
||
|
namespace StabilityMatrix.Avalonia.Controls.SelectableImageCard;
|
||
|
|
||
|
public class SelectableImageButton : Button
|
||
|
{
|
||
|
public static readonly StyledProperty<bool?> IsSelectedProperty =
|
||
|
CheckBox.IsCheckedProperty.AddOwner<SelectableImageButton>();
|
||
|
|
||
|
public static readonly StyledProperty<string?> SourceProperty =
|
||
|
BetterAdvancedImage.SourceProperty.AddOwner<SelectableImageButton>();
|
||
|
|
||
|
public bool? IsSelected
|
||
|
{
|
||
|
get => GetValue(IsSelectedProperty);
|
||
|
set => SetValue(IsSelectedProperty, value);
|
||
|
}
|
||
|
|
||
|
public string? Source
|
||
|
{
|
||
|
get => GetValue(SourceProperty);
|
||
|
set => SetValue(SourceProperty, value);
|
||
|
}
|
||
|
}
|