随笔分类 -  WPF

摘要:MainWindow.xaml(父窗体) <StackPanel> <Label Content="{Binding Message}"/> <Button Content="Input User Name" Command="{Binding OpenSubWindowCommand}"/> </ 阅读全文
posted @ 2022-01-05 13:58 Kyle0418 阅读(895) 评论(0) 推荐(0) 编辑
摘要:class CommandHandler : ICommand { Action action; Action<object> action1; Predicate<object> canexecute; bool withparam; bool _canexecute; public Comman 阅读全文
posted @ 2022-01-05 13:52 Kyle0418 阅读(138) 评论(0) 推荐(0) 编辑
摘要:xaml <Window.DataContext> <local:HierarchicalWindowViewModel/> </Window.DataContext> <Window.Resources> <HierarchicalDataTemplate x:Key="gradetemp" Da 阅读全文
posted @ 2021-12-24 15:24 Kyle0418 阅读(67) 评论(2) 推荐(0) 编辑
摘要:public partial class MyCombobox : ComboBox { public MyCombobox() { InitializeComponent(); } private int caretPosition; public override void OnApplyTem 阅读全文
posted @ 2021-11-25 14:48 Kyle0418 阅读(265) 评论(0) 推荐(0) 编辑

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