using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace Flow.Launcher.Avalonia.Views.Controls { public partial class ExCard : ContentControl { public static readonly StyledProperty TitleProperty = AvaloniaProperty.Register(nameof(Title), string.Empty); public static readonly StyledProperty SubProperty = AvaloniaProperty.Register(nameof(Sub), string.Empty); public static readonly StyledProperty IconProperty = AvaloniaProperty.Register(nameof(Icon), string.Empty); public static readonly StyledProperty SideContentProperty = AvaloniaProperty.Register(nameof(SideContent)); public static readonly StyledProperty IsExpandedProperty = AvaloniaProperty.Register(nameof(IsExpanded), false); public string Title { get => GetValue(TitleProperty); set => SetValue(TitleProperty, value); } public string Sub { get => GetValue(SubProperty); set => SetValue(SubProperty, value); } public string Icon { get => GetValue(IconProperty); set => SetValue(IconProperty, value); } public object? SideContent { get => GetValue(SideContentProperty); set => SetValue(SideContentProperty, value); } public bool IsExpanded { get => GetValue(IsExpandedProperty); set => SetValue(IsExpandedProperty, value); } public ExCard() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } } }