wpf-devexpress-dot-xpf-dot-grid-dot-scrollbarcustomrowannotationeventargs-21814fca.md
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
public ScrollBarAnnotationInfo ScrollBarAnnotationInfo { get; set; }
Public Property ScrollBarAnnotationInfo As ScrollBarAnnotationInfo
| Type | Description |
|---|---|
| ScrollBarAnnotationInfo |
A ScrollBarAnnotationInfo object that contains layout and appearance information.
|
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
{
e.ScrollBarAnnotationInfo = new DevExpress.Xpf.Grid.ScrollBarAnnotationInfo() {
Alignment = DevExpress.Xpf.Grid.ScrollBarAnnotationAlignment.Right,
wpf-grid-scrollbar-annotations/VB/WpfApplication25/MainWindow.xaml.vb#L39
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