RibbonButtonStyleSettings.BorderThickness Property
In This Article
Gets or sets a ribbon button’s border thickness. This is a dependency property.
Namespace: DevExpress.WinUI.Ribbon
Assembly: DevExpress.WinUI.Ribbon.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Nullable<Thickness> | The thickness of the ribbon button’s border. |
#Remarks
You can use this property to customize the appearance of the following ribbon buttons:
The following code sample specifies the BorderThickness, NormalBorderBrush, and CornerRadius appearance properties:
<Window ...
xmlns:dxr="using:DevExpress.WinUI.Ribbon"
xmlns:dxc="using:DevExpress.WinUI.Core">
<Grid>
<dxr:RibbonControl>
<dxr:RibbonControl.Tabs>
<dxr:RibbonTab Caption="Home">
<dxr:RibbonGroup Caption="File">
<dxr:RibbonButton Content="Open">
<dxr:RibbonButton.LargeIcon>
<dxc:DXSymbolIconSource Symbol="OpenFile" />
</dxr:RibbonButton.LargeIcon>
<dxr:RibbonButton.StyleSettings>
<dxr:RibbonButtonStyleSettings BorderThickness="2"
NormalBorderBrush="AntiqueWhite"
CornerRadius="5"/>
</dxr:RibbonButton.StyleSettings>
</dxr:RibbonButton>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</Grid>
</Window>
See Also