摘要: MainWindow.xaml(父窗体) <StackPanel> <Label Content="{Binding Message}"/> <Button Content="Input User Name" Command="{Binding OpenSubWindowCommand}"/> </ 阅读全文
posted @ 2022-01-05 13:58 Kyle0418 阅读(871) 评论(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) 编辑