using Avalonia; using Avalonia.Controls; namespace Needlework.Net.Desktop.Controls; public partial class BusyArea : UserControl { public BusyArea() { InitializeComponent(); } 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); } }