feat: add loading.
This commit is contained in:
@@ -8,13 +8,22 @@ namespace Ursa.Controls
|
||||
{
|
||||
public class Skeleton : ContentControl
|
||||
{
|
||||
|
||||
|
||||
public static readonly StyledProperty<bool> IsActiveProperty =
|
||||
AvaloniaProperty.Register<Skeleton, bool>(nameof(IsActive));
|
||||
public bool IsActive
|
||||
{
|
||||
get { return GetValue(IsActiveProperty); }
|
||||
set { SetValue(IsActiveProperty, value); }
|
||||
}
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<bool> LoadingProperty =
|
||||
AvaloniaProperty.Register<Skeleton, bool>(nameof(Loading));
|
||||
|
||||
public bool Loading
|
||||
{
|
||||
get => GetValue(LoadingProperty);
|
||||
set => SetValue(LoadingProperty, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user