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