ScrollViewer class
이 콘텐츠는 아직 번역되지 않았습니다.
A scrollable content container with horizontal and vertical scrollbars.
Guide: C# Markup reference: Content
public sealed class ScrollViewer : ContentControlPublic Members
Section titled “Public Members”| name | description |
|---|---|
| ScrollViewer() | Initializes a new instance of the ScrollViewer class. |
| AutoHideScrollBars { get; set; } | Gets or sets whether scrollbars overlay the content, reserving no width, and stay hidden until a scroll or a pointer over the bar region reveals them; the default is false. |
| HorizontalOffset { get; } | Gets the horizontal scroll offset. Observable: the value is published whenever the scroll state settles, which is also when ScrollChanged is raised. |
| HorizontalScroll { get; set; } | Gets or sets the horizontal scroll mode. |
| VerticalOffset { get; } | Gets the vertical scroll offset. Observable: the value is published whenever the scroll state settles, which is also when ScrollChanged is raised. |
| VerticalScroll { get; set; } | Gets or sets the vertical scroll mode. |
| ViewportHeight { get; } | Gets the content viewport height (excluding border inset and padding). |
| ViewportWidth { get; } | Gets the content viewport width (excluding border inset and padding). |
| event ScrollChanged | Raised when scroll metrics or offsets change. |
| ScrollBy(…) | Scrolls vertically by a fractional notch count. 1.0 = one wheel notch worth of DIPs (defined by ScrollWheelStep). |
| ScrollByHorizontal(…) | Scrolls horizontally by a fractional notch count. 1.0 = one wheel notch worth of DIPs. |
| SetScrollOffsets(…) | Sets both scroll offsets simultaneously. |
| static readonly AutoHideScrollBarsProperty | |
| static readonly HorizontalOffsetProperty | |
| static readonly HorizontalScrollProperty | |
| static readonly VerticalOffsetProperty | |
| static readonly VerticalScrollProperty |
See Also
Section titled “See Also”- class ContentControl
- namespace Aprillz.MewUI.Controls