Jul 29, 2008 at 9:19 AM
Edited Jul 29, 2008 at 9:48 AM
Thanks for your feedback.
My first attempt was to set MyProjectDocumentContent.Content was in its constructor:
Title = projectViewModel.Title;
Content = projectViewModel;
//var win = Application.Current.MainWindow;
//ContentTemplate = win.FindResource("CompleteProjectTempl") as DataTemplate;
I was hoping that the DocumentPane behave in the same way like WPF TabControl so I tried to bind the DocumentPane's ItemsSource to ab ObservableCollection as said above and SelectedItem to an ActionDocument of type MyProjectDocumentContent property
in the ViewModel (I am using MVVM pattern here) that keeps track the currently selected project in tab.
Here is what I want to archieve:
Title="Project selector" IconSource="/Images/star.png">
and in ViewModel
return _activeDocument; }
if (ActiveDocument ==
/// List of documents to be display as AvalonDock document
This time, I experience another strange behavior. Whenever I click the left mouse on a tabbed project, hoping that the tab will switch to that project but the project is not switched. On the contrary, more than one projects in the tab are marked as active.