重命名

This commit is contained in:
GG Z
2026-01-02 17:30:30 +08:00
parent 0e9db9a2b9
commit fa0d280130
245 changed files with 4405 additions and 4236 deletions

View File

@@ -0,0 +1,40 @@
namespace VariaStudio.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); }
}