摘要: 1.当一个界面不用控件需绑定不同ViewModel时,可在控件上单独设置DataContext。 DataContext="{Binding Source={StaticResource Locator},Path=GB_FloCheckStepInforViewModel}" 2.如果该控件写在r 阅读全文
posted @ 2021-02-24 19:57 马玲 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 默认的软件中的控件会自动监测本机语言系统,从而界面上的日期控件等会自动切换成对应的中/英文。为了保证系统一直处于中文状态,可在App.xaml.cs 中添加 System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInf 阅读全文
posted @ 2021-02-22 15:01 马玲 阅读(507) 评论(0) 推荐(0) 编辑
摘要: TreeViewAutomationPeer lvap = new TreeViewAutomationPeer(this.TreeViewOrg); var svap = lvap.GetPattern(PatternInterface.Scroll) as ScrollViewerAutomat 阅读全文
posted @ 2021-02-22 14:49 马玲 阅读(251) 评论(0) 推荐(0) 编辑
摘要: 1.style 注意绿色标注处,如果想要在Listbox外使用滚动条,此处则要注销ScrollViewer,否则在界面区域只能显示ListBox时会出现点击一下,弹到顶端的问题。 <Grid.Resources> <!--SelectedItem with focus --> <SolidColor 阅读全文
posted @ 2021-02-22 14:48 马玲 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 通过调整绿色区域,改变查询子、父级。注意分号,注意取完立即赋值到临时表。 ;with parentData as ( select ID,ParentId,Name from PJ_ScheduleItem where ID=@ID union all select b.ID,b.ParentId, 阅读全文
posted @ 2021-02-22 14:47 马玲 阅读(856) 评论(0) 推荐(0) 编辑
摘要: 安装node http://nodejs.cn/ .创建vue cli 1.打开 install addition tool for node.js 2.输入保存新项目的文件夹:cd D:\VueProject 进入文件夹 3.输入npm install -g @vue/cli 4.输入cnpm i 阅读全文
posted @ 2020-03-13 15:51 马玲 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 1.阴影 <Border.Effect> <DropShadowEffect Color="Gray" Direction="320" BlurRadius="20" Opacity="0.7" ShadowDepth="10"/> </Border.Effect> 2.在Loaded中添加控件的按 阅读全文
posted @ 2019-08-31 15:51 马玲 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-31 15:36 马玲 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 1.变量基本属性及反序列化 using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Xml.Serialization; na 阅读全文
posted @ 2019-08-31 15:35 马玲 阅读(361) 评论(0) 推荐(0) 编辑
摘要: ComboboxEdit this.cmbCalMethod.Properties.TextEditStyle = DevExpress.XtraEditors.Controls.TextEditStyles.DisableTextEditor; //设置ComboboxEdit 只可选择不可编辑 阅读全文
posted @ 2019-08-31 15:34 马玲 阅读(743) 评论(0) 推荐(0) 编辑