Added PersonPicture

This commit is contained in:
TheXamlGuy
2024-05-09 19:09:18 +01:00
parent ee7083d009
commit 711353c8e9
19 changed files with 1108 additions and 0 deletions
@@ -0,0 +1,26 @@
using Avalonia;
using Avalonia.Controls.Templates;
using Avalonia.Metadata;
namespace Toolkit.UI.Controls.Avalonia;
public class ContentIconSource : FluentAvalonia.UI.Controls.IconSource
{
public static readonly StyledProperty<object?> ContentProperty =
AvaloniaProperty.Register<ContentIconSource, object?>("Content");
public static readonly StyledProperty<IDataTemplate?> ContentTemplateProperty =
AvaloniaProperty.Register<ContentIconSource, IDataTemplate?>("ContentTemplate");
[Content]
public object? Content
{
get => GetValue(ContentProperty);
set => SetValue(ContentProperty, value);
}
public IDataTemplate? IconTemplate
{
get => GetValue(ContentTemplateProperty);
set => SetValue(ContentTemplateProperty, value);
}
}