private static void UpdateRegionName(DependencyObject d, string region, DynamicRegionNames dynamicRegionNames) { if (dynamicRegionNames != null) { Kernel.RegionManager.SetRegionName(d, dynamicRegionNames.GetName(region)); } }
public ModalWindow(Project project) { var names = new DynamicRegionNames(project); DynamicRegionManager.SetDynamicRegionNames(this, names); Prism.Regions.RegionManager.SetRegionManager(this, CommonServiceLocator.ServiceLocator.Current.GetInstance <IRegionManager>()); Prism.Regions.RegionManager.UpdateRegions(); InitializeComponent(); }
internal ModalWorkitemViewContainer(IWorkItem workItem, IRegionManagerExtension regionManager, IContainerExtension container) : base(workItem, regionManager, container) { RegionNames = DynamicRegionManager.GetDynamicRegionNames(WorkItem.Window.GetRegionHolder()); }
public static void SetDynamicRegionNames(DependencyObject obj, DynamicRegionNames value) { obj.SetValue(DynamicRegionNamesProperty, value); }