JavaEar 专注于收集分享传播有价值的技术资料

WPF功能区控件:RibbonContextualTabGroup隐藏标题 (WPF ribbon control: RibbonContextualTabGroup hiding title)

I'm creating an application that uses Microsoft's Ribbon but I'm having issues with the RibbonContextualTabGroup. When this tab appears it changes the title text specified in the ribbon properties to "E.....", is there a way round this?

alt text

Here's my code:

<r:RibbonWindow x:Class="Sample.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:r="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
    Title="Example Ribbon" Height="600" Width="800" FontFamily="Arial" WindowStartupLocation="CenterScreen" 
            Background="White">

<r:Ribbon DockPanel.Dock="Top" Title="Example" >
    <r:Ribbon.ContextualTabGroups>
        <r:RibbonContextualTabGroup Color="Yellow" Width="120" Name="ribbonCtxGroup" Label="Dataset">
            <r:RibbonTab Name="ribbonTabDataset" Label="Dataset">
                <r:RibbonTab.Groups>

                    <r:RibbonGroup >
                        <r:RibbonGroup.Command>
                            <r:RibbonCommand LabelTitle="Pages" />
                        </r:RibbonGroup.Command>
                    </r:RibbonGroup>

                </r:RibbonTab.Groups>
            </r:RibbonTab>
        </r:RibbonContextualTabGroup>
    </r:Ribbon.ContextualTabGroups>
</r:Ribbon>

1个回答

    最佳答案

  1. 英文原文

    If you haven't tried this (or don't need it) try deleting the Title="Example" from r:Ribbon or Title="Example Ribbon" from r:RibbonWindow.


    中文翻译

    如果您还没有尝试过(或者不需要),请尝试从r:RibbonWindow中的r:Ribbon或Title =" Example Ribbon" 中删除Title =" Example" 。

    If you haven't tried this (or don't need it) try deleting the Title="Example" from r:Ribbon or Title="Example Ribbon" from r:RibbonWindow.

    如果您还没有尝试过(或者不需要),请尝试从r:RibbonWindow中的r:Ribbon或Title =" Example Ribbon" 中删除Title =" Example" 。