using UIShare.UIViewModel; namespace UIShare.PubEvent { /// /// 其他模块向弹窗管理器添加 Tab 的事件。 /// 发布方:任何需要将弹窗托管到 DialogManagerView 的模块。 /// 订阅方:DialogMangerViewModel(仅一处订阅)。 /// /// // 示例:在某个 ViewModel 中发布 /// _eventAggregator.GetEvent<AddDialogTabEvent>().Publish(new DialogTabInfo /// { /// Title = "设备配置", /// Content = new DeviceConfigView() /// }); /// /// public class AddDialogTabEvent : PubSubEvent { } }
/// // 示例:在某个 ViewModel 中发布 /// _eventAggregator.GetEvent<AddDialogTabEvent>().Publish(new DialogTabInfo /// { /// Title = "设备配置", /// Content = new DeviceConfigView() /// }); ///