Back to Devexpress

TreeListView.ScrollBarAnnotationsAppearance Property

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-9c3203d3.md

latest2.3 KB
Original Source

TreeListView.ScrollBarAnnotationsAppearance Property

Gets or sets the appearance settings for scrollbar annotation marks.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public ScrollBarAnnotationsAppearance ScrollBarAnnotationsAppearance { get; set; }
vb
Public Property ScrollBarAnnotationsAppearance As ScrollBarAnnotationsAppearance

Property Value

TypeDescription
ScrollBarAnnotationsAppearance

A ScrollBarAnnotationsAppearance object that is the appearance of scrollbar annotation marks.

|

Remarks

To customize the appearance of the scrollbar annotation marks, pass the instance of ScrollBarAnnotationsAppearance class with the appearance settings to the ScrollBarAnnotationsAppearance property.

The code sample below demonstrates how to customize a scrollbar annotation mark that corresponds to a focused row.

xaml
<dxg:GridControl ...> 
    <dxg:GridControl.View> 
        <dxg:TreeListView ScrollBarAnnotationMode="All"> 
            <dxg:TreeListView.ScrollBarAnnotationsAppearance> 
                <dxg:ScrollBarAnnotationsAppearance> 
                    <dxg:ScrollBarAnnotationsAppearance.FocusedRow> 
                        <dxg:ScrollBarAnnotationInfo Alignment="Full" Brush="Blue"/> 
                    </dxg:ScrollBarAnnotationsAppearance.FocusedRow> 
                </dxg:ScrollBarAnnotationsAppearance> 
            </dxg:TreeListView.ScrollBarAnnotationsAppearance> 
        </dxg:TreeListView> 
    </dxg:GridControl.View> 
</dxg:GridControl>

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace