摘要:
/// /// 序列化 /// /// /// public static byte[] SerializeObject(T obj) where T : class { Syste... 阅读全文
posted @ 2015-03-20 16:56
CarsonCui
阅读(238)
评论(0)
推荐(0)
摘要:
在WPF中使用DataGrid,有时会用到ContextMenu,当ContextMenu需要绑定DataGrid列的时候,我们按平时的绑定就直接用ElementName的方式了,但在ContextMenu中是不可以的,可以用以下方式进行绑定: 在使用MenuItem时,有时会用到模板列... 阅读全文
posted @ 2015-03-20 16:51
CarsonCui
阅读(1106)
评论(0)
推荐(0)
摘要:
int i = 0; void item_PreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { i += 1; DispatcherTimer t... 阅读全文
posted @ 2015-03-20 16:46
CarsonCui
阅读(220)
评论(0)
推荐(0)
摘要:
private ItemTreeModel GetModel(List list, string Header) { foreach (var item in list) { if (item == null)... 阅读全文
posted @ 2015-03-20 16:45
CarsonCui
阅读(129)
评论(0)
推荐(0)
浙公网安备 33010602011771号