08 2023 档案

WPF Grid内的元素设置ZIndex
摘要:有时需要对Grid内的元素进行重新叠放,可以使用Grid.SetZIndex()方法实现: Grid.SetZIndex(drawCanvas, 1); Grid.SetZIndex(canvRects, 0); 阅读全文

posted @ 2023-08-21 15:19 lopengye 阅读(425) 评论(0) 推荐(0) 编辑

WPF ListView数据项右键菜单ContextMenu重写,以及右键菜单中button绑定ViewModel命令
摘要:想给数据项添加右键菜单,重新给右键菜单写了样式,右键菜单中包含button,如何给Button的Command绑定到页面的ViewModel,以下是代码示例 <DataTemplate x:Key="GridViewItemDataTemplate"> <Border Width="80" Heig 阅读全文

posted @ 2023-08-11 11:07 lopengye 阅读(879) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示