using ECMonitor.Page.Name; using Prism.Events; using Prism.Regions; using System.Windows.Controls; namespace ECMonitor.Page.CameraMonitor { /// /// FrmMain.xaml 的交互逻辑 /// public partial class Main : UserControl { public Main(IRegionManager regionManager, IEventAggregator ea) { InitializeComponent(); _ = regionManager.RegisterViewWithRegion(RegionsName.CameraMonitorLeft, typeof(CameraTreeView)); _ = regionManager.RegisterViewWithRegion(RegionsName.CameraMonitorCenter, typeof(CameraVideo)); _ = regionManager.RegisterViewWithRegion(RegionsName.CameraMonitorRight, typeof(CameraAdjust)); } } }