Back to Devexpress

ScrollBarAnnotationsAppearance Class

wpf-devexpress-dot-xpf-dot-grid-28e0cf5f.md

latest2.9 KB
Original Source

ScrollBarAnnotationsAppearance Class

Contains properties that provide access to the appearance settings of particular 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 ScrollBarAnnotationsAppearance :
    Freezable
vb
Public Class ScrollBarAnnotationsAppearance
    Inherits Freezable

The following members return ScrollBarAnnotationsAppearance objects:

Remarks

The ScrollBarAnnotationsAppearance class provides properties that allow you to access the appearance settings of particular scrollbar annotation marks.

For example, if you need to change the appearance of the mark that corresponds to the focused row, pass the ScrollBarAnnotationInfo class instance with the appearance settings to the ScrollBarAnnotationsAppearance ‘s ScrollBarAnnotationsAppearance.FocusedRow 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: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>

Inheritance

Object DispatcherObject DependencyObject Freezable ScrollBarAnnotationsAppearance

See Also

ScrollBarAnnotationsAppearance Members

DevExpress.Xpf.Grid Namespace