摘要: 默认的软件中的控件会自动监测本机语言系统,从而界面上的日期控件等会自动切换成对应的中/英文。为了保证系统一直处于中文状态,可在App.xaml.cs 中添加 System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInf 阅读全文
posted @ 2021-02-22 15:01 马玲 阅读(532) 评论(0) 推荐(0) 编辑
摘要: TreeViewAutomationPeer lvap = new TreeViewAutomationPeer(this.TreeViewOrg); var svap = lvap.GetPattern(PatternInterface.Scroll) as ScrollViewerAutomat 阅读全文
posted @ 2021-02-22 14:49 马玲 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1.style 注意绿色标注处,如果想要在Listbox外使用滚动条,此处则要注销ScrollViewer,否则在界面区域只能显示ListBox时会出现点击一下,弹到顶端的问题。 <Grid.Resources> <!--SelectedItem with focus --> <SolidColor 阅读全文
posted @ 2021-02-22 14:48 马玲 阅读(207) 评论(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 马玲 阅读(867) 评论(0) 推荐(0) 编辑