I want to show two views as RadTabItem for RadTabControl by using PRISM. So I have gone through your link at http://www.telerik.com/community/forums/silverlight/tabcontrol/tab-control-and-prism.aspx
there I studied 200673_tabcontrolandprism.zip code project. But my requirement is that in, Module1.cs file of Modules project, there is Initialize() method. If we look at following code location
public void Initialize()
{
this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () =>
{
return new FlandersViewModel();
});
this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () =>
{
return new SimpsonsViewModel();
});
}
Here viewModel is register with regionManager, But I want to register view with regions like following code
this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () => container.Resolve<
FlandersView
>());
this.regionManager.RegisterViewWithRegion(RegionNames.TabControlRegion, () => container.Resolve<
SimpsonsView
>());
When I performed same changes in code and binded viewmodel with view, I am not able to see any header or view.
So please let me know, can it possible to register view with regionManager when we work with Rad Tab Control ? If it possible then please provide me way to achieve this by using 200673_tabcontrolandprism.zip solution.
Thanks in advance for your help!
Regards,
Bhanudas