Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.ScrollViewerAvalonia.ControlsAvalonia.Controlssrc/Avalonia.Controls/ScrollViewer.csContentControl, IInternalScroller, IScrollAnchorProvider, IScrollablecontrolpublic static readonly AttachedProperty<bool> BringIntoViewOnFocusChangeProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, bool>(nameof(BringIntoViewOnFocusChange), true);public static readonly DirectProperty<ScrollViewer, Size> ExtentProperty = AvaloniaProperty.RegisterDirect<ScrollViewer, Size>(nameof(Extent), o => o.Extent);public static readonly StyledProperty<Vector> OffsetProperty = AvaloniaProperty.Register<ScrollViewer, Vector>(nameof(Offset), coerce: CoerceOffset);public static readonly DirectProperty<ScrollViewer, Size> ViewportProperty = AvaloniaProperty.RegisterDirect<ScrollViewer, Size>(nameof(Viewport), o => o.Viewport);public static readonly DirectProperty<ScrollViewer, Size> LargeChangeProperty = AvaloniaProperty.RegisterDirect<ScrollViewer, Size>( nameof(LargeChange), o => o.LargeChange);public static readonly DirectProperty<ScrollViewer, Size> SmallChangeProperty = AvaloniaProperty.RegisterDirect<ScrollViewer, Size>( nameof(SmallChange), o => o.SmallChange);public static readonly DirectProperty<ScrollViewer, Vector> ScrollBarMaximumProperty = AvaloniaProperty.RegisterDirect<ScrollViewer, Vector>( nameof(ScrollBarMaximum), o => o.ScrollBarMaximum);public static readonly AttachedProperty<ScrollBarVisibility> HorizontalScrollBarVisibilityProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, ScrollBarVisibility>( nameof(HorizontalScrollBarVisibility), ScrollBarVisibility.Disabled);public static readonly AttachedProperty<SnapPointsType> HorizontalSnapPointsTypeProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, SnapPointsType>( nameof(HorizontalSnapPointsType));public static readonly AttachedProperty<SnapPointsType> VerticalSnapPointsTypeProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, SnapPointsType>( nameof(VerticalSnapPointsType));public static readonly AttachedProperty<SnapPointsAlignment> HorizontalSnapPointsAlignmentProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, SnapPointsAlignment>( nameof(HorizontalSnapPointsAlignment));public static readonly AttachedProperty<SnapPointsAlignment> VerticalSnapPointsAlignmentProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, SnapPointsAlignment>( nameof(VerticalSnapPointsAlignment));public static readonly AttachedProperty<ScrollBarVisibility> VerticalScrollBarVisibilityProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, ScrollBarVisibility>( nameof(VerticalScrollBarVisibility), ScrollBarVisibility.Auto);public static readonly DirectProperty<ScrollViewer, bool> IsExpandedProperty = ScrollBar.IsExpandedProperty.AddOwner<ScrollViewer>(o => o.IsExpanded);public static readonly AttachedProperty<bool> AllowAutoHideProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, bool>( nameof(AllowAutoHide), true);public static readonly AttachedProperty<bool> IsScrollChainingEnabledProperty = AvaloniaProperty.RegisterAttached<ScrollViewer, Control, bool>( nameof(IsScrollChainingEnabled), defaultValue: true);<ScrollViewer x:Name="SampleScrollViewer" />
using Avalonia.Controls;
var control = new ScrollViewer();