Click here to Skip to main content
15,886,720 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I am new to WPF can anyone give solution for my problem..

In a shell.xamal file i have 2 region (TopRegion, MainRegion),
in TopRegion i have only one combo box with 2 items, depending upon choosing the item in combo box user control will generated in MainRegion.

In my another Scanerio i want to use the same shell, but only one region (MainRegion) is necessary to load single user control.

Is it possible to change the two region into one region in Shell.xamal file.

I am using prism concept with MVVM in WPF.



Thanks in advance...
Karthik.R
Posted
Comments
Tomas Takac 5-Nov-14 6:14am    
Just to clarify: empty TopRegion is a problem? And you want to use the same shell xaml and merge the regions programatically?
Karthik Ravi 5-Nov-14 7:03am    
yes, empty top region is the problem. UserControl only uses MainRegion and unnecessary space at TopRegion gives a bad look, I need a solution for eliminating the particular TopRegion while running my 2ndScanerio...
Tomas Takac 5-Nov-14 7:42am    
Couldn't you just hide the control the TopRegion is mapped to? I don't know the layout of your Shell so I'm guessing.
Karthik Ravi 7-Nov-14 2:07am    
Thank You for your kind reply Thomas, I got solution.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900