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.
Do you guys have a work around for this?
I'm currently designing an application and my client wanted it to be done using MVVM pattern. I'm quite new to this so i'm not sure how to approach the problem.
Can anybody suggest a design where I could control the Items(Add/Hide/Remove/Move Position/etc) of a xamDockManager in a ViewModel? or a controller maybe?
Regards,
michaelalm
You may want to take a look at the NetAdvantage for Composite Application Library on codeplex.
Hi Andrew,
Thanks for the referral,
I was able to try out the NCAL thing but i can't figure out how to the views in a DocumentContentHost -> SplitPane -> TabgroupPane
i.e
<igDock:XamDockManager> <igDock:DocumentContentHost> <igDock:SplitPane> <igDock:TabGroupPane> <igDock:ContentPane Width="100" Height="100" /> </igDock:TabGroupPane> </igDock:SplitPane> </igDock:DocumentContentHost> </igDock:XamDockManager>
Is this even possible with the current version?Thanks!
Mike
I haven't worked with that library myself but perhaps you could post your question on the discussions tab for that project in codeplex. I think this post may be related to your question.
thanks for the link, i think it answered my problem.
I guess i'll have to change the infragistics code then. :)
Thanks!