using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; namespace SukiUI.Controls; public partial class BusyArea : UserControl { public BusyArea() { InitializeComponent(); } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } public static readonly StyledProperty IsBusyProperty = AvaloniaProperty.Register(nameof(IsBusy), defaultValue: false); public bool IsBusy { get { return GetValue(IsBusyProperty); } set { SetValue(IsBusyProperty, value); } } public static readonly StyledProperty BusyTextProperty = AvaloniaProperty.Register(nameof(BusyText), defaultValue: null); public string? BusyText { get => GetValue(BusyTextProperty); set => SetValue(BusyTextProperty, value); } }