Skip to main content

Bar.BorderThickness Property

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

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

Declaration

public Thickness BorderThickness { get; set; }

Property Value

Type Description
Thickness

A Thickness value which specifies the bar’s border thickness in pixels.

Remarks

The following code sample displays a 1 pixel BarCheckItem‘s border (the Bar.BorderThickness property) and sets the border color to red (the Bar.BorderBrush property):

<Window ...
  xmlns:dxb="http://schemas.devexpress.com/winfx/2008/xaml/bars">
  <Grid>
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="*"/>
      <RowDefinition Height="Auto"/>
    </Grid.RowDefinitions>
    <dxb:BarContainerControl ContainerType="Top" Grid.Row="0">
      <dxb:MainMenuControl Caption="Main Menu">
        <dxb:BarCheckItem Content="Open" BorderThickness="1" BorderBrush="Red"/>
      </dxb:MainMenuControl>
    </dxb:BarContainerControl>
  </Grid>
</Window>

WPF Bars - BorderThickness Property

See Also