Back to Devexpress

ScrollBarCustomRowAnnotationEventArgs.ScrollBarAnnotationInfo Property

wpf-devexpress-dot-xpf-dot-grid-dot-scrollbarcustomrowannotationeventargs-21814fca.md

latest3.1 KB
Original Source

ScrollBarCustomRowAnnotationEventArgs.ScrollBarAnnotationInfo Property

Gets or sets the information about the layout and appearance of custom scrollbar annotation marks.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

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

Property Value

TypeDescription
ScrollBarAnnotationInfo

A ScrollBarAnnotationInfo object that contains layout and appearance information.

|

Remarks

Use the ScrollBarAnnotationInfo property to define the look and feel of custom scrollbar annotation marks.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ScrollBarAnnotationInfo property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-grid-scrollbar-annotations/CS/WpfApplication25/MainWindow.xaml.cs#L42

csharp
{
    e.ScrollBarAnnotationInfo = new DevExpress.Xpf.Grid.ScrollBarAnnotationInfo() {
        Alignment = DevExpress.Xpf.Grid.ScrollBarAnnotationAlignment.Right,

wpf-grid-scrollbar-annotations/VB/WpfApplication25/MainWindow.xaml.vb#L39

vb
Private Sub ShowCustomScrollAnnotation(ByVal e As DevExpress.Xpf.Grid.ScrollBarCustomRowAnnotationEventArgs, ByVal brush As System.Windows.Media.SolidColorBrush)
    e.ScrollBarAnnotationInfo = New DevExpress.Xpf.Grid.ScrollBarAnnotationInfo() With {.Alignment = DevExpress.Xpf.Grid.ScrollBarAnnotationAlignment.Right, .Brush = brush, .MinHeight = 3, .Width = 10}
End Sub

See Also

ScrollBarCustomRowAnnotationEventArgs Class

ScrollBarCustomRowAnnotationEventArgs Members

DevExpress.Xpf.Grid Namespace