Navigation Pane Title Missing Office 2010 Themes

Navigation for WPF Forum

Posted 9 years ago by Andy Ver Murlen
Version: 10.2.0530
Platform: .NET 4.0
Environment: Windows 7 (32-bit)
Avatar
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.

<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>
[Modified at 09/30/2010 02:11 PM]

Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
That is by design. The Outlook 2010 headers don't seem to show the text. However we added a new NavigationBar.IsHeaderContentVisible property that you can set to true to force it to show, regardless of theme. That is available in the code you have.


Actipro Software Support

The latest build of this product (v2019.1 build 0682) was released 30 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.