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.
No, you cannot bind the TabGroupPane's ItemsSource. The element needs to be able to manipulate its items when panes are unpinned, floated, dragged elsewhere, etc.
Thanks for your quick reply.