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

ScrollBarAnnotationInfo Class

Contains information about the layout and appearance of a particular type of scrollbar annotation marks.

Namespace: DevExpress.Xpf.Grid

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

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public class ScrollBarAnnotationInfo :
    DependencyObject

#Remarks

When using the scrollbar annotation functionality, you can manually customize the look-and-feel of annotation marks. To customize annotation marks of a particular type, pass the ScrollBarAnnotationInfo instance to the corresponding property of the ScrollBarAnnotationsAppearance class.

The code sample below demonstrates how to customize the look and feel of annotation marks that correspond to invalid rows.

<dxg:GridControl ...>
    <dxg:GridControl.View>
        <dxg:TableView ScrollBarAnnotationMode="All">
            <dxg:TableView.ScrollBarAnnotationsAppearance>
                <dxg:ScrollBarAnnotationsAppearance>
                    <dxg:ScrollBarAnnotationsAppearance.InvalidRows>
                        <dxg:ScrollBarAnnotationInfo Alignment="Right" MinHeight="3" Brush="Red"/>
                    </dxg:ScrollBarAnnotationsAppearance.InvalidRows>
                </dxg:ScrollBarAnnotationsAppearance>
            </dxg:TableView.ScrollBarAnnotationsAppearance>
        </dxg:TableView>
    </dxg:GridControl.View>
</dxg:GridControl>

#Inheritance

See Also