Note: This document is auto-generated by
scripts/generate_control_reference_docs.py. Do not edit manually.
Avalonia.Controls.Presenters.ScrollContentPresenterAvalonia.Controls.PresentersAvalonia.Controlssrc/Avalonia.Controls/Presenters/ScrollContentPresenter.csContentPresenter, IScrollAnchorProvider, IScrollablecontrolpublic static readonly StyledProperty<bool> CanHorizontallyScrollProperty = AvaloniaProperty.Register<ScrollContentPresenter, bool>(nameof(CanHorizontallyScroll));public static readonly StyledProperty<bool> CanVerticallyScrollProperty = AvaloniaProperty.Register<ScrollContentPresenter, bool>(nameof(CanVerticallyScroll));public static readonly DirectProperty<ScrollContentPresenter, Size> ExtentProperty = ScrollViewer.ExtentProperty.AddOwner<ScrollContentPresenter>( o => o.Extent);public static readonly StyledProperty<Vector> OffsetProperty = ScrollViewer.OffsetProperty.AddOwner<ScrollContentPresenter>(new(coerce: ScrollViewer.CoerceOffset));public static readonly DirectProperty<ScrollContentPresenter, Size> ViewportProperty = ScrollViewer.ViewportProperty.AddOwner<ScrollContentPresenter>( o => o.Viewport);public static readonly StyledProperty<SnapPointsType> HorizontalSnapPointsTypeProperty = ScrollViewer.HorizontalSnapPointsTypeProperty.AddOwner<ScrollContentPresenter>();public static readonly StyledProperty<SnapPointsType> VerticalSnapPointsTypeProperty = ScrollViewer.VerticalSnapPointsTypeProperty.AddOwner<ScrollContentPresenter>();public static readonly StyledProperty<SnapPointsAlignment> HorizontalSnapPointsAlignmentProperty = ScrollViewer.HorizontalSnapPointsAlignmentProperty.AddOwner<ScrollContentPresenter>();public static readonly StyledProperty<SnapPointsAlignment> VerticalSnapPointsAlignmentProperty = ScrollViewer.VerticalSnapPointsAlignmentProperty.AddOwner<ScrollContentPresenter>();public static readonly StyledProperty<bool> IsScrollChainingEnabledProperty = ScrollViewer.IsScrollChainingEnabledProperty.AddOwner<ScrollContentPresenter>();public ScrollContentPresenter() {public bool CanHorizontallyScroll {public bool CanVerticallyScroll {public Size Extent {public Vector Offset {public Size Viewport {<ScrollContentPresenter x:Name="SampleScrollContentPresenter" />
using Avalonia.Controls.Presenters;
var control = new ScrollContentPresenter();