Prism 查找活动界面
2023-06-18 本文已影响0人
lack倪酱
var hc = RegionManager.Regions.FirstOrDefault(C => C.Name.Contains(HomeRegionNames.HomeContent));
var cView = hc.NavigationService.Region.ActiveViews.First() as UserControl;
cView.GetType().Name;//用户控件类名称
var hc = RegionManager.Regions.FirstOrDefault(C => C.Name.Contains(HomeRegionNames.HomeContent));
var cView = hc.NavigationService.Region.ActiveViews.First() as UserControl;
cView.GetType().Name;//用户控件类名称