I am facing the foll problems :
PROBLEM – 1
Scenario :
Issue Regarding Telerik Docking > RadDocking.DocumentHost
Here we want to activate view from specific region. Please go through the following steps -
- First I register view ModuleAMainPageView with MyMainRegion by using following line :
regionManager.RegisterViewWithRegion("MyMainRegion", () => unityContainer.Resolve<ModuleAMainPageView>());
2. Then I have added two views in same page as ModuleAMainPageView contain TabControl.
regionManager.RegisterViewWithRegion("MainTabRegion", () => unityContainer.Resolve<TabAView>());
regionManager.RegisterViewWithRegion("MainTabRegion", () => unityContainer.Resolve<TabBView>());
3. But after this we have requirement that we have to activate ModuleAMainPageView View, so I have write code as :
string moduleAMainPageView = "ModuleA.Views.ModuleAMainPageView";
ActivateView(moduleAMainPageView, regionManager.Regions["MyMainRegion"])
4. Where ActivateView() is function with following code
public void ActivateView(string viewName, IRegion currentRegion)
{
foreach (var v in currentRegion.Views)
{
var viewType = v.GetType();
if (viewType.FullName != viewName) continue;
currentRegion.Activate(v);
break;
}
}
5. Please have look at code for region.
<!--<telerik:RadDocking.DocumentHost>-->
<
telerik:RadSplitContainer
x:Name
=
"MainPageContainer"
>
<
telerik:RadPaneGroup
x:Name
=
"Group5"
>
<
telerik:RadPane
x:Name
=
"EverestMainRegion"
FontSize
=
"10.667"
regions:RegionManager.RegionName
=
"MyMainRegion"
ScrollViewer.HorizontalScrollBarVisibility
=
"Auto"
>
</
telerik:RadPane
>
</
telerik:RadPaneGroup
>
</
telerik:RadSplitContainer
>
<!--</telerik:RadDocking.DocumentHost>-->
6. At point number 5 ,if we comment the code for <telerik:RadDocking.DocumentHost>, the above code work fine but If we replace same code as point 5 then it gives me following error at point number 3.
ERROR : “The region manager does not contain the MyMainRegion region.”
- My Question Is : Is there is any other alternate way or another code line which will replace code at point number 3.
PROBLEM – 2
Scenario :
As we are using Prsim Approach, We have defined a Shell which has a region named ( LoginScreenRegion ). This Region accepts LoginPageView initially and after hitting login button, it accepts LandingPageView.
This landingPageView has Telerik Docking inside it.
Problem:
After cliking login Button – the LandingPageView comes, and then after unpin of Right Panes ( Assignment , Message Notification) , the Whole UI gets truncated to the center of the screen.
( Please see the attached png Image – Collapsed,png)
This Problem is coming whenever we are using Prism approach. However it works fine if we do it through normal traditional approach ( without prism) .
I have also attached images for my solution Explore, shell, loginPageview