功能更新
This commit is contained in:
25
Melskin/Controls/SplashWindow/SplashConfig.cs
Normal file
25
Melskin/Controls/SplashWindow/SplashConfig.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace Melskin.Controls;
|
||||
|
||||
/// <summary>
|
||||
/// SplashConfig 类提供了一个配置启动画面的抽象基类。通过设置此类中的属性,可以自定义启动画面的外观,如图像的高度和边框圆角半径。
|
||||
/// </summary>
|
||||
public abstract record SplashConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取或设置启动画面中图像的高度。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 该属性定义了显示在启动窗口中的图像高度,单位为像素。默认值为 300 像素。
|
||||
/// 可以通过修改此属性来调整启动画面中图像的大小。
|
||||
/// </remarks>
|
||||
public static double ImageHeight { get; set; } = 300d;
|
||||
|
||||
/// <summary>
|
||||
/// 获取或设置控件的圆角半径。此属性用于定义控件边角的弧度大小,通过指定一个值来同时设置四个角的半径,或者分别指定每个角的半径。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 该属性在 Melskin.Controls 命名空间下的多个类中被使用,如 SplashConfig 和 Border 类。通过调整 CornerRadius 的值,可以改变相关控件(例如窗口)的外观样式,使其具有平滑的圆角边缘。
|
||||
/// 默认情况下,CornerRadius 被设置为 24d,这意味着如果未明确更改其值,则所有使用了该属性的控件将会显示拥有相同半径的圆角。
|
||||
/// </remarks>
|
||||
public static CornerRadius CornerRadius { get; set; } = new(24d);
|
||||
}
|
||||
Reference in New Issue
Block a user