30 lines
811 B
C#
30 lines
811 B
C#
using Avalonia;
|
|
using Avalonia.Controls;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
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> IsLoadingProperty =
|
|
AvaloniaProperty.Register<Skeleton, bool>(nameof(IsLoading));
|
|
|
|
public bool IsLoading
|
|
{
|
|
get => GetValue(IsLoadingProperty);
|
|
set => SetValue(IsLoadingProperty, value);
|
|
}
|
|
}
|
|
}
|