[英]Hide Ribbon Tab Headers in the FluentRibbon Suite Controls for WPF
I'm using the Fluent Ribbon Control Suite , to develop an application, and i would like to be able to use the ribbon control using one single tab and hidin the tab selection area.我正在使用Fluent Ribbon Control Suite来开发应用程序,我希望能够使用一个选项卡并隐藏选项卡选择区域来使用功能区控件。
Here there are some picture to show what i want to achieve.这里有一些图片来展示我想要实现的目标。
可以设置tabitem = 0
的高度和宽度tabitem = 0
来达到同样的效果
<fluent:RibbonTabItem Header="" Height="0" Width="0">
Of course you can do, the solution is change当然可以,解决办法是改变
[..]
<RibbonTab Header="Nuovo atleta">
[..]
into进入
[..]
<RibbonTab >
[..]
After you must create your own style for the RibbonTabHeader
here is an example and it will fix it:在您必须为
RibbonTabHeader
创建自己的样式后,这里是一个示例,它将修复它:
<Window.Resources>
<Style TargetType="RibbonTabHeader">
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="RibbonTabHeader">
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Window.Resources>
If this helps someone, setting RibbonTabItem.Height
to 0
and Ribbon.CanMinimize
to False
collapses the title bar of Fluent Ribbon.如果这对某人有帮助,
RibbonTabItem.Height
设置为0
并将Ribbon.CanMinimize
设置为False
以折叠 Fluent Ribbon 的标题栏。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.