mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-04-24 18:04:39 +08:00
82 lines
4.1 KiB
C#
82 lines
4.1 KiB
C#
//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
|
||
{
|
||
/// <summary>
|
||
/// 为所有 Panel 元素提供基类。 使用 Panel 元素放置和排列UIElement,对于Panel的继承者的子对象的如果尺寸超过Panel对齐方式是左上角而不是居中
|
||
/// </summary>
|
||
public partial class Panel : Element<CPF.Controls.Panel>
|
||
{
|
||
|
||
[Parameter] public string Background { get; set; }
|
||
/// <summary>
|
||
/// 边框线条填充
|
||
/// <summary>
|
||
[Parameter] public string BorderFill { get; set; }
|
||
/// <summary>
|
||
/// 获取或设置线条类型
|
||
/// <summary>
|
||
[Parameter] public Stroke? BorderStroke { get; set; }
|
||
/// <summary>
|
||
/// 四周边框粗细
|
||
/// <summary>
|
||
[Parameter] public Thickness? BorderThickness { get; set; }
|
||
[Parameter] public BorderType? BorderType { get; set; }
|
||
/// <summary>
|
||
/// 获取或设置一个值,该值表示将 Border 的角倒圆的程度。
|
||
/// <summary>
|
||
[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; }
|
||
/// <summary>
|
||
/// 定义一个控件组,一般由多个元素组成,在设计器中,子元素和该控件为一个控件组,点击子元素拖动时,将作为整体拖动整个控件组。如果该控件被子元素盖住,按Alt+Ctrl键加鼠标左键可以选中该控件。按住Alt键可以移动子元素。
|
||
/// <summary>
|
||
[Parameter] public bool? IsGroup { get; set; }
|
||
/// <summary>
|
||
/// 表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。字符串格式: overline/Underline/Strikethrough/none [width[,Solid/Dash/Dot/DashDot/DashDotDot]] [color]
|
||
/// <summary>
|
||
[Parameter] public TextDecoration? TextDecoration { get; set; }
|
||
[Parameter] public EventCallback<ViewFill> BackgroundChanged { get; set; }
|
||
/// <summary>
|
||
/// 边框线条填充
|
||
/// <summary>
|
||
[Parameter] public EventCallback<ViewFill> BorderFillChanged { get; set; }
|
||
/// <summary>
|
||
/// 获取或设置线条类型
|
||
/// <summary>
|
||
[Parameter] public EventCallback<Stroke> BorderStrokeChanged { get; set; }
|
||
/// <summary>
|
||
/// 四周边框粗细
|
||
/// <summary>
|
||
[Parameter] public EventCallback<Thickness> BorderThicknessChanged { get; set; }
|
||
[Parameter] public EventCallback<BorderType> BorderTypeChanged { get; set; }
|
||
/// <summary>
|
||
/// 获取或设置一个值,该值表示将 Border 的角倒圆的程度。
|
||
/// <summary>
|
||
[Parameter] public EventCallback<CornerRadius> CornerRadiusChanged { get; set; }
|
||
[Parameter] public EventCallback<string> FontFamilyChanged { get; set; }
|
||
[Parameter] public EventCallback<float> FontSizeChanged { get; set; }
|
||
[Parameter] public EventCallback<FontStyles> FontStyleChanged { get; set; }
|
||
[Parameter] public EventCallback<ViewFill> ForegroundChanged { get; set; }
|
||
/// <summary>
|
||
/// 定义一个控件组,一般由多个元素组成,在设计器中,子元素和该控件为一个控件组,点击子元素拖动时,将作为整体拖动整个控件组。如果该控件被子元素盖住,按Alt+Ctrl键加鼠标左键可以选中该控件。按住Alt键可以移动子元素。
|
||
/// <summary>
|
||
[Parameter] public EventCallback<bool> IsGroupChanged { get; set; }
|
||
/// <summary>
|
||
/// 表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。字符串格式: overline/Underline/Strikethrough/none [width[,Solid/Dash/Dot/DashDot/DashDotDot]] [color]
|
||
/// <summary>
|
||
[Parameter] public EventCallback<TextDecoration> TextDecorationChanged { get; set; }
|
||
|
||
}
|
||
}
|