I am converting a .NET 1.1 Windows Form (mdi) based application to a WPF which is using PRISM as its MVVM framework.
To simulate the mdi behavior, the application needs the ability to open multiple tabs for same view. For example, I have a view displays the person’s name, address, phone, etc.
I used your CustomTabControlRegionAdapter_WPF project as guidance
for creating the region adapter for the
RadTabControl. This seemed to work until
the TabItem view contains another TabsControl.
To ensure it wasn’t something specific with my implementation, I reproduced
the behavior in your sample project.
In the TabItemHomeView.xaml , I added the another TabControl:
<
TextBlock
Text
=
"This is the Home tab content"
/><
br
><
telerik:RadTabControl
><
br
><
telerik:RadTabItem
Header
=
"Tab 1"
></
telerik:RadTabItem
><
br
> <
telerik:RadTabItem
Header
=
"Tab 2"
></
telerik:RadTabItem
><
br
> <
telerik:RadTabItem
Header
=
"Tab 3"
></
telerik:RadTabItem
><
br
></
telerik:RadTabControl
>
When the project runs, it throws an
exception on line 215 of the RadTabControlRegionSyncBehavors.cs: “The
region does not contain the specified view.”
Parameter name: view;
Any additional guidance would be appreciated.
Thanks