所谓的潇洒

导航

< 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

统计

03 2023 档案

Dialog
摘要:1.自定义对话框xaml <UserControl x:Class="NavigationApp.Views.MyDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch 阅读全文

posted @ 2023-03-19 23:33 所谓的潇洒 阅读(125) 评论(0) 推荐(0) 编辑

Navigation
摘要:public class MainWindowViewModel : BindableBase { private string _title = "Prism Application"; public string Title { get { return _title; } set { SetP 阅读全文

posted @ 2023-03-19 22:31 所谓的潇洒 阅读(69) 评论(0) 推荐(0) 编辑

事件聚合器
摘要:1.定义事件 public class MessageEvent : PubSubEvent<String> { } 2.发布和订阅 private readonly IEventAggregator _eventAggregator; //构造函数添加事件聚合器参数 public ViewAVie 阅读全文

posted @ 2023-03-19 18:42 所谓的潇洒 阅读(51) 评论(0) 推荐(0) 编辑

复合命令
摘要:public class ViewAViewModel : BindableBase { private string _message; public string Message { get { return _message; } set { SetProperty(ref _message, 阅读全文

posted @ 2023-03-19 18:07 所谓的潇洒 阅读(22) 评论(0) 推荐(0) 编辑

Module
摘要:1.模块加载方式:配置文件、代码、xmal 2.配置文件加载模块 1>创建模块,并在模块初始化方法中添加如下代码 public void OnInitialized(IContainerProvider containerProvider) { var registerManager = conta 阅读全文

posted @ 2023-03-19 17:42 所谓的潇洒 阅读(293) 评论(0) 推荐(0) 编辑

Region
摘要:1.内置区域适配器 ContentControlRegionAdapter、ItemControlRegionAdapter、SelectorRegionAdapter、Combobox、ListBox、Ribbon、TabControl 使用: view中: <ContentControl pri 阅读全文

posted @ 2023-03-18 22:35 所谓的潇洒 阅读(174) 评论(0) 推荐(0) 编辑

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