02 2021 档案

摘要:public static bool IsNumber(string s) { if (string.IsNullOrWhiteSpace(s)) return false; const string pattern = "^[0-9]*$"; Regex rx = new Regex(patter 阅读全文
posted @ 2021-02-26 16:16 马玲 阅读(841) 评论(0) 推荐(0) 编辑
摘要:xmlns:sys="clr-namespace:System;assembly=mscorlib"<Grid.Resources> <Style TargetType="ToolTip"> <Style.Triggers> <Trigger Property="Content" Value="{x 阅读全文
posted @ 2021-02-25 11:03 马玲 阅读(1835) 评论(0) 推荐(0) 编辑
摘要:1.当一个界面不用控件需绑定不同ViewModel时,可在控件上单独设置DataContext。 DataContext="{Binding Source={StaticResource Locator},Path=GB_FloCheckStepInforViewModel}" 2.如果该控件写在r 阅读全文
posted @ 2021-02-24 19:57 马玲 阅读(311) 评论(0) 推荐(0) 编辑
摘要:默认的软件中的控件会自动监测本机语言系统,从而界面上的日期控件等会自动切换成对应的中/英文。为了保证系统一直处于中文状态,可在App.xaml.cs 中添加 System.Threading.Thread.CurrentThread.CurrentUICulture = new CultureInf 阅读全文
posted @ 2021-02-22 15:01 马玲 阅读(599) 评论(0) 推荐(0) 编辑
摘要:TreeViewAutomationPeer lvap = new TreeViewAutomationPeer(this.TreeViewOrg); var svap = lvap.GetPattern(PatternInterface.Scroll) as ScrollViewerAutomat 阅读全文
posted @ 2021-02-22 14:49 马玲 阅读(257) 评论(0) 推荐(0) 编辑
摘要:1.style 注意绿色标注处,如果想要在Listbox外使用滚动条,此处则要注销ScrollViewer,否则在界面区域只能显示ListBox时会出现点击一下,弹到顶端的问题。 <Grid.Resources> <!--SelectedItem with focus --> <SolidColor 阅读全文
posted @ 2021-02-22 14:48 马玲 阅读(209) 评论(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 马玲 阅读(879) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示