This action will force synchronization from BinGoo/CPFUI, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
using CPF;using CPF.Animation;using CPF.Charts;using CPF.Controls;using CPF.Drawing;using CPF.Shapes;using CPF.Styling;using CPF.Svg;using CPFUI.IControl;using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace CPFUIDemo{public class Window4 : Window{protected override void InitializeComponent(){LoadStyleFile("res://CPFUIDemo/Stylesheet1.css");//加载样式文件,文件需要设置为内嵌资源LoadStyleFile("res://CPFUI/Style/Css/Normal.css", true);Title = "标题";Width = 500;Height = 400;Background = null;Children.Add(new WindowFrame(this, new Panel{Width = "100%",Height = "100%",Children = //内容元素放这里{new TextBoxEx{MarginTop=50,Width=120,IsSingleLine=false,},new TextBoxEx{MarginTop=100,Width=120,IsSingleLine=true,}}}));if (!DesignMode)//设计模式下不执行,也可以用#if !DesignMode{}}#if !DesignMode //用户代码写到这里,设计器下不执行,防止设计器出错protected override void OnInitialized(){base.OnInitialized();}//用户代码#endif}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。