ScrollControl.CornerBoxStyle Property

Gets or sets a style applied to a CornerBox. This is a dependency property.

Namespace: DevExpress.Xpf.Core

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


public Style CornerBoxStyle { get; set; }

Property Value

Type Description

A System.Windows.Style object applied to a CornerBox.


A DevExpress.Xpf.Core.CornerBox object is a rectangle between a horizontal and vertical scroll bar. Set the ScrollControl descendant object’s ScrollControl.ScrollBars property to Auto in order to display scroll bars when required. The CornerBoxStyle property allows you to customize a CornerBox by applying styles.

TargetType: CornerBox.

Have a look at the figure below:

CornerBox Style

This yellow-red gradient CornerBox was made via the CornerBoxStyle property, as the markup below shows:

. . .
    <Style x:Key="myCornerStyle" TargetType="dxc:CornerBox">
        <Setter Property="Background">
                <LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
                    <GradientStop Color="Yellow" Offset="0.0" />
                    <GradientStop Color="Orange" Offset="0.5" />
                    <GradientStop Color="Red" Offset="1" />
. . .
<dxlc:FlowLayoutControl Name="myFC1" ScrollBars="Auto" CornerBoxStyle="{StaticResource myCornerStyle}">
. . .
See Also