mirror of
https://gitee.com/csharpui/CPF.git
synced 2025-06-28 13:34:09 +08:00
56 lines
2.2 KiB
C#
56 lines
2.2 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>
|
|||
|
/// 将子元素排列成水平或垂直的一行
|
|||
|
/// </summary>
|
|||
|
public partial class StackPanel : Element<CPF.Controls.StackPanel>
|
|||
|
{
|
|||
|
|
|||
|
[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>
|
|||
|
/// 布局方向
|
|||
|
/// <summary>
|
|||
|
[Parameter] public Orientation? Orientation { get; set; }
|
|||
|
/// <summary>
|
|||
|
/// 表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。字符串格式: overline/Underline/Strikethrough/none [width[,Solid/Dash/Dot/DashDot/DashDotDot]] [color]
|
|||
|
/// <summary>
|
|||
|
[Parameter] public TextDecoration? TextDecoration { get; set; }
|
|||
|
|
|||
|
}
|
|||
|
}
|