Ribbon Control - Workspace areas
-
Hi all, I'm working with MS Ribbon Control Library in VS2010 (using WPF and MVVM) and what to recreate something that Word 2010 does... (I'm not sure what MS call this function) If you open a new doc in Word 2010, you get the document in a view window (as normal). However, if you then select File, it will open a new window / workspace with Information about Document1 for this tab... Select Home tab and it goes back to the view of the document. 1: What does MS call this function> 2: How do I create a new window / workspace for each tab. I have tried the following snippet:
<r:RibbonTab Header="Home" >
<r:RibbonGroup Header="Imaging">
<r:RibbonButton Label="Archive Images" />
<r:RibbonButton Label="Our Images" />
</r:RibbonGroup>
<r:RibbonTab.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter /> <!-- Show only contentcontrol HomePage -->
</Trigger>
</r:RibbonTab.Triggers>
</r:RibbonTab>
...<ContentControl x:Name="HomePage" Visibility="Collapsed"/>
<ContentControl x:Name="DocPage" Visibility="Collapsed"/>But I'm stuck!!
Love & Light
-
Hi all, I'm working with MS Ribbon Control Library in VS2010 (using WPF and MVVM) and what to recreate something that Word 2010 does... (I'm not sure what MS call this function) If you open a new doc in Word 2010, you get the document in a view window (as normal). However, if you then select File, it will open a new window / workspace with Information about Document1 for this tab... Select Home tab and it goes back to the view of the document. 1: What does MS call this function> 2: How do I create a new window / workspace for each tab. I have tried the following snippet:
<r:RibbonTab Header="Home" >
<r:RibbonGroup Header="Imaging">
<r:RibbonButton Label="Archive Images" />
<r:RibbonButton Label="Our Images" />
</r:RibbonGroup>
<r:RibbonTab.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter /> <!-- Show only contentcontrol HomePage -->
</Trigger>
</r:RibbonTab.Triggers>
</r:RibbonTab>
...<ContentControl x:Name="HomePage" Visibility="Collapsed"/>
<ContentControl x:Name="DocPage" Visibility="Collapsed"/>But I'm stuck!!
Love & Light
I've also tried:
<r:RibbonTab.Triggers>
<DataTrigger Binding="{Binding Path=IsSelected}" Value="True" >
<!--<Setter TargetName="HomePage" Property="ContentControl.Visibility" Value="Visible" />-->
</DataTrigger>
</r:RibbonTab.Triggers>But get the error message XamlParseException occurred 'Initialization of 'Microsoft.Windows.Controls.Ribbon.RibbonTab' threw an exception.' Line number '65' and line position '18'.
Love & Light