Back to Devexpress

BarItem.Padding Property

wpf-devexpress-dot-xpf-dot-bars-dot-baritem-e5d24118.md

latest2.4 KB
Original Source

BarItem.Padding Property

Gets or sets the inner indents around the BarItem. This is a dependency property.

Namespace : DevExpress.Xpf.Bars

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

NuGet Package : DevExpress.Wpf.Core

Declaration

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

Property Value

TypeDescription
Thickness

A Thickness value that represents the inner indents (in pixels) around the BarItem.

|

Remarks

The following code sample specifies the BarButtonItems‘s Margin and Padding properties:

xaml
<Window ...
  xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars"> 
    <dxb:ToolBarControl VerticalAlignment="Top" Padding="0,0,15,0">
      <dxb:BarButtonItem Content="Cut" Margin="0,0,4,4"/>
      <dxb:BarButtonItem Content="Copy" />
      <dxb:BarButtonItem Content="Paste" />
    </dxb:ToolBarControl>
</Window>

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

BarItem Class

BarItem Members

DevExpress.Xpf.Bars Namespace