// CPF自动生成. using CPF; using CPF.Controls; using CPF.Drawing; using CPF.Input; using CPF.Razor; using CPF.Shapes; using Microsoft.AspNetCore.Components; namespace CPF.Razor.Controls { /// /// 为所有 Panel 元素提供基类。 使用 Panel 元素放置和排列UIElement,对于Panel的继承者的子对象的如果尺寸超过Panel对齐方式是左上角而不是居中 /// public partial class Panel : Element { [Parameter] public string Background { get; set; } /// /// 边框线条填充 /// [Parameter] public string BorderFill { get; set; } /// /// 获取或设置线条类型 /// [Parameter] public Stroke? BorderStroke { get; set; } /// /// 四周边框粗细 /// [Parameter] public Thickness? BorderThickness { get; set; } [Parameter] public BorderType? BorderType { get; set; } /// /// 获取或设置一个值,该值表示将 Border 的角倒圆的程度。 /// [Parameter] public CornerRadius? CornerRadius { get; set; } [Parameter] public string FontFamily { get; set; } [Parameter] public float? FontSize { get; set; } [Parameter] public FontStyles? FontStyle { get; set; } [Parameter] public string Foreground { get; set; } /// /// 定义一个控件组,一般由多个元素组成,在设计器中,子元素和该控件为一个控件组,点击子元素拖动时,将作为整体拖动整个控件组。如果该控件被子元素盖住,按Alt+Ctrl键加鼠标左键可以选中该控件。按住Alt键可以移动子元素。 /// [Parameter] public bool? IsGroup { get; set; } /// /// 表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。字符串格式: overline/Underline/Strikethrough/none [width[,Solid/Dash/Dot/DashDot/DashDotDot]] [color] /// [Parameter] public TextDecoration? TextDecoration { get; set; } } }