diff --git a/demo/Ursa.Demo/Pages/LoadingDemo.axaml b/demo/Ursa.Demo/Pages/LoadingDemo.axaml index 00c0fb9..696a614 100644 --- a/demo/Ursa.Demo/Pages/LoadingDemo.axaml +++ b/demo/Ursa.Demo/Pages/LoadingDemo.axaml @@ -10,7 +10,7 @@ mc:Ignorable="d"> - + diff --git a/src/Ursa.Themes.Semi/Controls/Loading.axaml b/src/Ursa.Themes.Semi/Controls/Loading.axaml index 4d8d689..be8337c 100644 --- a/src/Ursa.Themes.Semi/Controls/Loading.axaml +++ b/src/Ursa.Themes.Semi/Controls/Loading.axaml @@ -7,6 +7,7 @@ + @@ -29,20 +30,6 @@ - - - @@ -56,13 +43,25 @@ + @@ -98,7 +97,7 @@ diff --git a/src/Ursa/Controls/Loading/LoadingIcon.cs b/src/Ursa/Controls/Loading/LoadingIcon.cs index b6d71fb..94b87e1 100644 --- a/src/Ursa/Controls/Loading/LoadingIcon.cs +++ b/src/Ursa/Controls/Loading/LoadingIcon.cs @@ -1,8 +1,16 @@ +using Avalonia; using Avalonia.Controls; namespace Ursa.Controls; public class LoadingIcon: ContentControl { - + public static readonly StyledProperty IsLoadingProperty = AvaloniaProperty.Register( + nameof(IsLoading)); + + public bool IsLoading + { + get => GetValue(IsLoadingProperty); + set => SetValue(IsLoadingProperty, value); + } } \ No newline at end of file