摘要:1.自定义对话框xaml <UserControl x:Class="NavigationApp.Views.MyDialog" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sch
阅读全文
摘要:public class MainWindowViewModel : BindableBase { private string _title = "Prism Application"; public string Title { get { return _title; } set { SetP
阅读全文
摘要:1.定义事件 public class MessageEvent : PubSubEvent<String> { } 2.发布和订阅 private readonly IEventAggregator _eventAggregator; //构造函数添加事件聚合器参数 public ViewAVie
阅读全文
摘要:public class ViewAViewModel : BindableBase { private string _message; public string Message { get { return _message; } set { SetProperty(ref _message,
阅读全文
摘要:1.模块加载方式:配置文件、代码、xmal 2.配置文件加载模块 1>创建模块,并在模块初始化方法中添加如下代码 public void OnInitialized(IContainerProvider containerProvider) { var registerManager = conta
阅读全文
摘要:1.内置区域适配器 ContentControlRegionAdapter、ItemControlRegionAdapter、SelectorRegionAdapter、Combobox、ListBox、Ribbon、TabControl 使用: view中: <ContentControl pri
阅读全文