Back to Devexpress

ScrollBarAnnotationInfo Class

wpf-devexpress-dot-xpf-dot-grid-171ddf56.md

latest3.2 KB
Original Source

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.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public class ScrollBarAnnotationInfo :
    DependencyObject
vb
Public Class ScrollBarAnnotationInfo
    Inherits DependencyObject

The following members return ScrollBarAnnotationInfo objects:

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.

xaml
<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

Object DispatcherObject DependencyObject ScrollBarAnnotationInfo

See Also

ScrollBarAnnotationInfo Members

DevExpress.Xpf.Grid Namespace