摘要: <ListBox> <ListBox.ItemsPanel> <ItemsPanelTemplate> <StackPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 阅读全文
posted @ 2024-03-27 17:41 春天花会开, 阅读(102) 评论(0) 推荐(0) 编辑
摘要: private void setOther() { System.Threading.Tasks.Task.Run(() => { // 需要异步的内容 }); } 阅读全文
posted @ 2024-03-27 17:37 春天花会开, 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 如果combobox的下拉数据源是Dictionary字典定义的,则不会显示是因为: Dictionary字典不带有通知功能,所以在使用字典作为数据源的情况下,需要将字典赋值写到构造函数中 阅读全文
posted @ 2024-03-27 17:30 春天花会开, 阅读(150) 评论(0) 推荐(0) 编辑
摘要: <TextBlock> <TextBlock.InputBindings> <MouseBinding MouseAction="LeftDoubleClick" Command="" CommandParameter=""/> </TextBlock.InputBindings> </TextBl 阅读全文
posted @ 2024-03-27 17:27 春天花会开, 阅读(345) 评论(0) 推荐(0) 编辑
摘要: <UserControl ..... xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"> <Grid> <i:Interaction.Triggers> <i:EventTrigger EventName="Mo 阅读全文
posted @ 2024-03-27 16:02 春天花会开, 阅读(89) 评论(0) 推荐(0) 编辑
摘要: <UserControl ..... xmlns:prism ="http://prismlibrary.com/" prism:ViewModelLocator.AutoWireViewModel="True"> 阅读全文
posted @ 2024-03-27 15:01 春天花会开, 阅读(51) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 枚举转bool /// </summary> public class Enum2BooleanConverter : IValueConverter { public object Convert(object value, Type targetType, o 阅读全文
posted @ 2024-03-27 14:48 春天花会开, 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 场景:在窗口关闭的时候(用户点击叉叉的时候),需要比较用户在当前页面是否有修改,如果有需要提示是否要保存,如果没有才能关闭页面。 解决方案: 已知集合:LstConfig(当前的集合) _localLstConfig(在打开页面随即缓存的初始数据集合) 第一种:集合直接比较 public bool 阅读全文
posted @ 2024-03-27 14:22 春天花会开, 阅读(64) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示