随笔分类 -  WPF

摘要:<ComboBox DisplayMemberPath="FileName" ItemsSource="{Binding DbConfigCollection, Mode=TwoWay}" SelectedItem="{Binding TaskOptions.TargetDatabase, Mode 阅读全文
posted @ 2022-02-23 14:41 Gold步履不停 阅读(1061) 评论(0) 推荐(0)
摘要:在窗体关闭事件中,关闭当前的Scheduler private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { var factory=ServiceLocator.Instance.GetS 阅读全文
posted @ 2022-02-18 08:58 Gold步履不停 阅读(328) 评论(0) 推荐(1)
摘要:{TemplateBinding X}只是编写{Binding X, RelativeSource={RelativeSource TemplatedParent}}的快捷方式。TemplateBinding等价于{Binding RelativeSource={RelativeSource Tem 阅读全文
posted @ 2021-10-29 10:28 Gold步履不停 阅读(1855) 评论(0) 推荐(1)
摘要:创建一个WPF应用程序(.Net Framwork4.7),NuGet安装Prism.Wpf包,生成后Debug文件如图所示 除了可执行文件Test.exe外,还有大量的引用的Dll文件、xml文件、config配置文件和pdb调试文件。有时候我们不希望看到这么多文件,只想拿到一个exe文件就能运行 阅读全文
posted @ 2021-07-19 20:55 Gold步履不停 阅读(9155) 评论(1) 推荐(0)