using Avalonia;
using Avalonia.Controls;
using Avalonia.Controls.Templates;
using Avalonia.Metadata;

namespace AtomUI.Desktop.Controls;

public class SkeletonNode : SkeletonImage
{
    #region 公共属性定义

    public static readonly StyledProperty<object?> ContentProperty = 
        ContentControl.ContentProperty.AddOwner<SkeletonNode>();
    
    public static readonly StyledProperty<IDataTemplate?> ContentTemplateProperty = 
        ContentControl.ContentTemplateProperty.AddOwner<SkeletonNode>();
    
    [Content]
    [DependsOn(nameof(ContentTemplate))]
    public object? Content
    {
        get => GetValue(ContentProperty);
        set => SetValue(ContentProperty, value);
    }
    
    public IDataTemplate? ContentTemplate
    {
        get => GetValue(ContentTemplateProperty);
        set => SetValue(ContentTemplateProperty, value);
    }
    #endregion
}