Posted 14 years ago
by Andy Ver Murlen
Version: 10.2.0530
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
I have just noticed that the NavigationPane's Title attribute is not visible when using any of the Office 2010 themes.
Consider the following, you will notice the Title "Title Goes Here" is not visible at the top of the pane. However, if you change the theme to Office2007Blue, it is now visible.[Modified at 09/30/2010 02:11 PM]
Consider the following, you will notice the Title "Title Goes Here" is not visible at the top of the pane. However, if you change the theme to Office2007Blue, it is now visible.
<ribbon:RibbonWindow
x:Class="RibbonTest"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
xmlns:navigation="clr-namespace:ActiproSoftware.Windows.Controls.Navigation;assembly=ActiproSoftware.Navigation.Wpf351"
xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
ApplicationName="RibbonTest"
Width="620"
Height="420"
themes:ThemeManager.Theme="Office2010Blue"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<!-- Ribbon Control (Define last so that adorners overlay other controls) -->
<ribbon:Ribbon x:Name="ribbon" Grid.Row="0">
<!-- Tab Panel Items (Appear next to the tabs) -->
<ribbon:Ribbon.TabPanelItems>
<ribbon:Button Label="Help" KeyTipAccessText="Z" />
</ribbon:Ribbon.TabPanelItems>
<ribbon:Ribbon.ApplicationMenu>
<!-- Application Menu -->
<ribbon:ApplicationMenu>
<!-- Application Menu Items -->
<ribbon:Button Label="New" KeyTipAccessText="N" />
<ribbon:Button Label="Open" KeyTipAccessText="O" />
<ribbon:Button Label="Save" KeyTipAccessText="S" />
<ribbon:Button Label="Save As" KeyTipAccessText="A" />
<ribbon:Separator />
<ribbon:Button Label="Print" KeyTipAccessText="P" />
<ribbon:Separator />
<ribbon:Button Label="Close" KeyTipAccessText="C" />
<!-- Additional Content (Right side of application menu) -->
<ribbon:ApplicationMenu.AdditionalContent>
<ribbon:RecentDocumentMenu>
</ribbon:RecentDocumentMenu>
</ribbon:ApplicationMenu.AdditionalContent>
<!-- Application Menu Footer Buttons -->
<ribbon:ApplicationMenu.FooterButtons>
<ribbon:Button Label="Options" KeyTipAccessText="I" />
<ribbon:Button Label="Exit Application" KeyTipAccessText="X" />
</ribbon:ApplicationMenu.FooterButtons>
</ribbon:ApplicationMenu>
</ribbon:Ribbon.ApplicationMenu>
<!-- Quick Access ToolBar (QAT) -->
<ribbon:Ribbon.QuickAccessToolBarItems>
</ribbon:Ribbon.QuickAccessToolBarItems>
<!-- Tabs -->
<ribbon:Ribbon.Tabs>
<ribbon:Tab Label="Home" KeyTipAccessText="H">
<ribbon:Group Label="New Group">
</ribbon:Group>
</ribbon:Tab>
<ribbon:Tab Label="Another Tab" />
</ribbon:Ribbon.Tabs>
</ribbon:Ribbon>
<Grid SnapsToDevicePixels="True" Grid.Row="1" Margin="6">
<Grid.ColumnDefinitions>
<ColumnDefinition
MinWidth="40"
/>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<navigation:NavigationBar
x:Name="uxNavBar_NavBar"
>
<navigation:NavigationPane
x:Name="Jobs"
Title="Title Goes Here"
Content="One Two Three"
Padding="3"
/>
</navigation:NavigationBar>
</Grid>
</Grid>
</ribbon:RibbonWindow>