Devexpress使RibbonPageGroup Caption加粗

时间:2014-10-08 12:09:08

标签: c# wpf devexpress

我有一个功能区页面组:

<dxr:RibbonPageGroup Name="newReports" Caption="New Reports">

我希望标题看起来很大胆。我怎样才能做到这一点?我在网上搜索但找不到任何东西。

1 个答案:

答案 0 :(得分:1)

尝试设置RibbonControl.GroupCaptionTextStyle

来自devexpress documentation

  

<强>说明

     

要应用样式以自定义方式绘制标题,请使用RibbonControl.GroupCaptionTextStyle。

示例:(taken from devexpress Support Center)

<dxr:RibbonPageGroup Name="newReports" Caption="New Reports">
    <dxr:RibbonControl.GroupCaptionTextStyle>
        <Style TargetType="{x:Type ContentControl}">
            <Setter Property="FontWeight" Value="Bold"/>
        </Style>
    </dxr:RibbonControl.GroupCaptionTextStyle>
</dxr:RibbonPageGroup>
相关问题