09 2017 档案

摘要:无参Command: 1 internal class DelegateCommand : ICommand 2 { 3 private readonly Action _execute; 4 private readonly Func<bool> _canExecute; 5 6 public D 阅读全文
posted @ 2017-09-14 22:42 唐宋元明清2188 阅读(1593) 评论(0) 推荐(0) 编辑
摘要:1.已知item的DataContext,获取ListBoxItem 1)ItemContainerGenerator.ContainerFromItem var selectedItem = DocumentsControl.ItemContainerGenerator.ContainerFrom 阅读全文
posted @ 2017-09-11 14:38 唐宋元明清2188 阅读(517) 评论(0) 推荐(1) 编辑
摘要:列表排序 1.使用控件默认排序方式(推荐) 2.使用CollectionView排序 2.自定义SortableObservableCollection 添加列表属性,并绑定到控件 在排序触发时,添加 viewModel.Items.Sort(item => item.UpdateTime, sor 阅读全文
posted @ 2017-09-10 21:05 唐宋元明清2188 阅读(410) 评论(0) 推荐(0) 编辑

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