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

TableView.ScrollBarAnnotationsAppearance Property

Gets or sets the appearance settings for scrollbar annotation marks.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public ScrollBarAnnotationsAppearance ScrollBarAnnotationsAppearance { get; set; }

#Property Value

Type Description
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.

<dxg:GridControl ...> 
    <dxg:GridControl.View> 
        <dxg:TableView ScrollBarAnnotationMode="All"> 
            <dxg:TableView.ScrollBarAnnotationsAppearance> 
                <dxg:ScrollBarAnnotationsAppearance> 
                    <dxg:ScrollBarAnnotationsAppearance.FocusedRow> 
                        <dxg:ScrollBarAnnotationInfo Alignment="Full" Brush="Blue"/> 
                    </dxg:ScrollBarAnnotationsAppearance.FocusedRow> 
                </dxg:ScrollBarAnnotationsAppearance> 
            </dxg:TableView.ScrollBarAnnotationsAppearance> 
        </dxg:TableView> 
    </dxg:GridControl.View> 
</dxg:GridControl>
See Also