feat: fix loading animation issue.

This commit is contained in:
rabbitism
2024-09-21 19:27:05 +08:00
parent 054ab858b4
commit 34811c6884
3 changed files with 25 additions and 18 deletions

View File

@@ -1,8 +1,16 @@
using Avalonia;
using Avalonia.Controls;
namespace Ursa.Controls;
public class LoadingIcon: ContentControl
{
public static readonly StyledProperty<bool> IsLoadingProperty = AvaloniaProperty.Register<LoadingIcon, bool>(
nameof(IsLoading));
public bool IsLoading
{
get => GetValue(IsLoadingProperty);
set => SetValue(IsLoadingProperty, value);
}
}