功能完善

This commit is contained in:
ShrlAlgo
2025-08-20 12:10:13 +08:00
parent d0cfc64450
commit fcd306b0f7
270 changed files with 11503 additions and 7193 deletions

View File

@@ -0,0 +1,40 @@
namespace NeumUI.Controls;
/// <summary>
/// 头像
/// </summary>
public class Avatar : ContentControl
{
/// <summary>
/// 圆角半径
/// </summary>
public static readonly DependencyProperty CornerRadiusProperty =
System.Windows.Controls.Border.CornerRadiusProperty
.AddOwner(
typeof(Avatar),
new FrameworkPropertyMetadata(default(CornerRadius), FrameworkPropertyMetadataOptions.Inherits));
/// <summary>
/// 伸展方式
/// </summary>
public static readonly DependencyProperty StretchProperty =
Viewbox.StretchProperty
.AddOwner(
typeof(Avatar),
new FrameworkPropertyMetadata(default(Stretch), FrameworkPropertyMetadataOptions.Inherits));
/// <summary>
/// 圆角半径
/// </summary>
public CornerRadius CornerRadius
{
get => (CornerRadius)GetValue(CornerRadiusProperty);
set => SetValue(CornerRadiusProperty, value);
}
/// <summary>
/// 伸展方式
/// </summary>
public Stretch Stretch { get => (Stretch)GetValue(StretchProperty); set => SetValue(StretchProperty, value); }
}