feat: add loading.
This commit is contained in:
26
src/Ursa/Controls/Loading/Loading.cs
Normal file
26
src/Ursa/Controls/Loading/Loading.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Controls;
|
||||
|
||||
namespace Ursa.Controls;
|
||||
|
||||
public class Loading: ContentControl
|
||||
{
|
||||
public static readonly StyledProperty<object?> IndicatorProperty = AvaloniaProperty.Register<Loading, object?>(
|
||||
nameof(Indicator));
|
||||
|
||||
public object? Indicator
|
||||
{
|
||||
get => GetValue(IndicatorProperty);
|
||||
set => SetValue(IndicatorProperty, value);
|
||||
}
|
||||
|
||||
public static readonly StyledProperty<object?> IsLoadingProperty = AvaloniaProperty.Register<Loading, object?>(
|
||||
nameof(IsLoading));
|
||||
|
||||
public object? IsLoading
|
||||
{
|
||||
get => GetValue(IsLoadingProperty);
|
||||
set => SetValue(IsLoadingProperty, value);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user