mirror of
https://gitee.com/csharpui/CPF.git
synced 2026-05-17 04:31:25 +08:00
razor支持
This commit is contained in:
@@ -13,7 +13,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示 Windows 按钮控件,该按钮对 Click 事件做出反应。
|
||||
/// </summary>
|
||||
public partial class Button : Element<CPF.Controls.Button>
|
||||
public partial class Button : Element<CPF.Controls.Button> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示用户可以选择和清除的控件。
|
||||
/// </summary>
|
||||
public partial class CheckBox : Element<CPF.Controls.CheckBox>
|
||||
public partial class CheckBox : Element<CPF.Controls.CheckBox> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示一种控件,该控件显示具有可折叠内容显示窗口的标题。
|
||||
/// </summary>
|
||||
public partial class Expander : Element<CPF.Controls.Expander>
|
||||
public partial class Expander : Element<CPF.Controls.Expander> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示可由用户选择但不能清除的按钮。 可以通过单击来设置 IsChecked 的 RadioButton 属性,但只能以编程方式清除该属性。
|
||||
/// </summary>
|
||||
public partial class RadioButton : Element<CPF.Controls.RadioButton>
|
||||
public partial class RadioButton : Element<CPF.Controls.RadioButton> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示从按下按钮到释放按钮的时间内重复引发其 Click 事件的控件。
|
||||
/// </summary>
|
||||
public partial class RepeatButton : Element<CPF.Controls.RepeatButton>
|
||||
public partial class RepeatButton : Element<CPF.Controls.RepeatButton> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -13,7 +13,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 表示可包含其他可视元素的可滚动区域
|
||||
/// </summary>
|
||||
public partial class ScrollViewer : Element<CPF.Controls.ScrollViewer>
|
||||
public partial class ScrollViewer : Element<CPF.Controls.ScrollViewer> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 左右切换的按钮
|
||||
/// </summary>
|
||||
public partial class Switch : Element<CPF.Controls.Switch>
|
||||
public partial class Switch : Element<CPF.Controls.Switch> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CPF.Razor.Controls
|
||||
/// <summary>
|
||||
/// 可切换状态的控件基类
|
||||
/// </summary>
|
||||
public partial class ToggleButton : Element<CPF.Controls.ToggleButton>
|
||||
public partial class ToggleButton : Element<CPF.Controls.ToggleButton> ,IHandleChildContentText
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
80
CPF.Razor/Controls/generated/WindowFrame.generated.cs
Normal file
80
CPF.Razor/Controls/generated/WindowFrame.generated.cs
Normal file
@@ -0,0 +1,80 @@
|
||||
// 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 WindowFrame : Element<CPF.Controls.WindowFrame>
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 背景填充
|
||||
/// <summary>
|
||||
[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; }
|
||||
/// <summary>
|
||||
/// 边框类型,BorderStroke和BorderThickness
|
||||
/// <summary>
|
||||
[Parameter] public BorderType? BorderType { get; set; }
|
||||
/// <summary>
|
||||
/// 获取或设置一个值,该值表示将 Border 的角倒圆的程度。格式 一个数字或者四个数字 比如10或者 10,10,10,10 topLeft,topRight,bottomRight,bottomLeft
|
||||
/// <summary>
|
||||
[Parameter] public CornerRadius? CornerRadius { get; set; }
|
||||
/// <summary>
|
||||
/// 字体名
|
||||
/// <summary>
|
||||
[Parameter] public string FontFamily { get; set; }
|
||||
/// <summary>
|
||||
/// 字体尺寸,点
|
||||
/// <summary>
|
||||
[Parameter] public float? FontSize { get; set; }
|
||||
/// <summary>
|
||||
/// 字体样式
|
||||
/// <summary>
|
||||
[Parameter] public FontStyles? FontStyle { get; set; }
|
||||
/// <summary>
|
||||
/// 控件文字的填充
|
||||
/// <summary>
|
||||
[Parameter] public string Foreground { get; set; }
|
||||
[Parameter] public bool? MaximizeBox { get; set; }
|
||||
[Parameter] public bool? MinimizeBox { get; set; }
|
||||
/// <summary>
|
||||
/// 获取或设置描述 Thickness 及其子元素之间的空间量的 Border 值。格式:all或者left,top,right,bottom
|
||||
/// <summary>
|
||||
[Parameter] public Thickness? Padding { get; set; }
|
||||
/// <summary>
|
||||
/// 阴影宽度
|
||||
/// <summary>
|
||||
[Parameter] public byte? ShadowBlur { get; set; }
|
||||
/// <summary>
|
||||
/// 显示标题栏图标
|
||||
/// <summary>
|
||||
[Parameter] public bool? ShowIcon { get; set; }
|
||||
/// <summary>
|
||||
/// 表示一个文本修饰,它是可添加到文本的视觉装饰(如下划线)。字符串格式: overline/Underline/Strikethrough/none [width[,Solid/Dash/Dot/DashDot/DashDotDot]] [color]
|
||||
/// <summary>
|
||||
[Parameter] public TextDecoration? TextDecoration { get; set; }
|
||||
[Parameter] public EventCallback Initialized { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user