Back to Devexpress

RibbonPage.BorderThickness Property

wpf-devexpress-dot-xpf-dot-ribbon-dot-ribbonpage-0f365560.md

latest3.1 KB
Original Source

RibbonPage.BorderThickness Property

Gets or sets the thickness of a RibbonPage‘s border. This is a dependency property.

Namespace : DevExpress.Xpf.Ribbon

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

NuGet Package : DevExpress.Wpf.Ribbon

Declaration

csharp
public Thickness BorderThickness { get; set; }
vb
Public Property BorderThickness As Thickness

Property Value

TypeDescription
Thickness

A Thickness value which specifies a RibbonPage‘s border thickness in pixels.

|

Remarks

The following code sample specifies the RibbonPage‘s Background, Foreground, BorderBrush, BorderThickness , and CornerRadius 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 RibbonStyle="Office2019">
    <dxr:RibbonDefaultPageCategory>
      <dxr:RibbonPage Caption="Home" Background="AliceBlue" Foreground="DarkGoldenrod">
        <!-- ... -->
      </dxr:RibbonPage>
      <dxr:RibbonPage Caption="Page" Background="Bisque" BorderBrush="ForestGreen"
                      BorderThickness="2" CornerRadius="5">
        <!-- ... -->
      </dxr:RibbonPage>
    </dxr:RibbonDefaultPageCategory>
  </dxr:RibbonControl>
</dx:ThemedWindow>

Note

The property is supported in the following DevExpress themes:

Theme FamilyThemes
Windows 11Dark, Light
Windows 10Dark, Light
Office 2019Black, Colorful, Dark Gray, White, HighContrast
Visual Studio 2019Blue, Dark, Light
Office 2016 SEBlack, Colorful, Dark Gray, White
Visual Studio 2017Blue, Dark, Light

See Also

RibbonPage Class

RibbonPage Members

DevExpress.Xpf.Ribbon Namespace