Hi,
I am using the PrismIntegration with docking concept in my appliaction but still i am facing problem.
PrismIntegration with docking means registering or displaying the usercontrols as the respectively dockable toolwindows in main shell of the application.
Problem1: As i am able to register the usercontrols as the dockable toolwindows in the main shell but the ui part(Controls like button ,textboxes in the usercontrol) of the usercontrol is not dicplaying in the main shell of the application.
Module class for registering the viewmodel(viewmodel of the userconterol) of the view(usercontrol) in the docksite region below
[ModuleExport(typeof(RealTimeModule1), InitializationMode = InitializationMode.OnDemand)]
public class RealTimeModule1 : IModule
{
private readonly IRegionManagerregionmanager;
private readonly IRegionViewRegistry myRegionViewRegistry;
private readonly IEventAggregator eventAggregator;
[ImportingConstructor]
public RealTimeModule1(IRegionManager regionManager, IRegionViewRegistry registry, IEventAggregatorevntAggregator)
{
this.regionmanager = regionManager;
this.myRegionViewRegistry = registry;
this.eventAggregator = evntAggregator;
}
public void Initialize()
{
realshell =newRealTimeShell();
RegionManager.SetRegionManager(realshell, regionmanager);
AblationModule.AblationView.ViewModels.AblationViewModel av = new AblationModule.AblationView.ViewModels.AblationViewModel();
var reg = regionmanager.Regions["MainRegion"].Add(av);
realshell.Show();
}
Above added viewmodel class consist of the Initialize and Open method of the IDockingWindowInitializer, IDockingWindowItemTypeProvider