Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.v24.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