Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
XamDockManager Binding
posted

Hi,

Actually i am using MVVM pattern in my application.I having a file called "ApplicationView.xaml" and "ApplicationViewModel.cs".My main goal is i want to do everything through binding.In the ApplicationView.xaml I set the "DataContext=new ApplciationViewModel()".In the ApplicationView i have XamDoctManager and i have XamTabGroupPane.In the ApplicationViewModel i have observableCollection called "Views" which contains set of usercontrol.Now i want to bind the Views to XamTabGroupPane.I don't want to add the View(UserControl) in ContentPane and adding it in XamTabGroupPane in the codebind.I want to bind it like the following code.

<my:TabGroupPane x:Name="MainTabPane" ItemsSource="{Binding Path=Views}">

<my:TabGroupPane.Template>

<ControlTemplate>

<my:ContentPane x:Name="CP" Content="{Binding Path=MainView}"/>

</ControlTemplate>

</my:TabGroupPane.Template>

 

I want to know answer for the following :

Does the TabGroupPane supports Binding?

Can i achieve it in some other way?

 

Thanks in Advance,

Ramesh Babu.