Skip to main content
A newer version of this page is available. .

RibbonPage.Margin Property

Gets or sets the outer indents around the RibbonPage. This is a dependency property.

Namespace: DevExpress.Xpf.Ribbon

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

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Ribbon, DevExpress.Wpf.Navigation

Declaration

public Thickness Margin { get; set; }

Property Value

Type Description
Thickness

A Thickness that represents the outer indents around the RibbonPage.

Remarks

The following code sample sets the RibbonPage‘s Margin property to 0,-10,0,10, Padding to 10,30,10,0, and Background to AliceBlue:

<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" Padding="10,30,10,0" Margin="0,-10,0,10" Background="AliceBlue">
        <!-- ... -->
      </dxr:RibbonPage>
    </dxr:RibbonDefaultPageCategory>
  </dxr:RibbonControl>
</dx:ThemedWindow>

RibbonPage - Standard Properties

Note

The property is supported in the following DevExpress themes:

Theme Family Themes
Windows 10 Light
Office 2019 Black, Colorful, Dark Gray, White, HighContrast
Visual Studio 2019 Blue, Dark, Light
Office 2016 SE Black, Colorful, Dark Gray, White
Visual Studio 2017 Blue, Dark, Light
See Also