Back to Devexpress

RibbonPageGroup.HeaderBorderStyle Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribbonpagegroup-46fe840f.md

latest2.5 KB
Original Source

RibbonPageGroup.HeaderBorderStyle Property

Gets or sets a style applied to the RibbonPageGroup’s header. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

Assembly : DevExpress.Xpf.Ribbon.v25.2.dll

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public Style HeaderBorderStyle { get; set; }
vb
Public Property HeaderBorderStyle As Style

Property Value

TypeDescription
Style

A Style object applied to the RibbonPageGroup’s header.

|

Remarks

The following code sample specifies the RibbonPageGroup header’s Background , CornerRadius , Margin , and Padding properties:

xaml
<dx:ThemedWindow ...
  xmlns:dxr="http://schemas.devexpress.com/winfx/2008/xaml/ribbon" 
  xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core">
  <dxr:RibbonControl>
    <dxr:RibbonDefaultPageCategory>
      <dxr:RibbonPage Caption="Home">
        <dxr:RibbonPageGroup Caption="File" ShowCaptionButton="True">
          <dxr:RibbonPageGroup.HeaderBorderStyle>
            <Style TargetType="Border">
              <Setter Property="Background" Value="PaleTurquoise"/>
              <Setter Property="CornerRadius" Value="2"/>
              <Setter Property="BorderBrush" Value="Blue"/>
              <Setter Property="BorderThickness" Value="2"/>
              <Setter Property="Margin" Value="5"/>
              <Setter Property="Padding" Value="5"/>
            </Style>
          </dxr:RibbonPageGroup.HeaderBorderStyle>
        </dxr:RibbonPageGroup>
        <!-- ... -->
      </dxr:RibbonPage>
    </dxr:RibbonDefaultPageCategory>
  </dxr:RibbonControl>
</dx:ThemedWindow>

See Also

RibbonPageGroup Class

RibbonPageGroup Members

DevExpress.Xpf.Ribbon Namespace