我正在创建一个使用 Microsoft 功能区的应用程序,但我遇到了 RibbonContextualTabGroup 的问题。当此选项卡出现时,它将功能区属性中指定的标题文本更改为“E.....”,有没有办法解决这个问题?
这是我的代码:
<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>