Skip to main content

ScrollViewer Class

Namespace: GHIElectronics.TinyCLR.UI.Controls · Assembly: GHIElectronics.TinyCLR.UI

No description available.

public class ScrollViewer : ContentControl

Constructors

ScrollViewer()

public ScrollViewer()

No description available.

Properties

HorizontalOffset

public int HorizontalOffset { get; set; }

Horizontal offset of the scroll. (inherited)

VerticalOffset

public int VerticalOffset { get; set; }

Vertical offset of the scroll. (inherited)

ExtentHeight

public int ExtentHeight { get; }

Extent height of the scroll area. (inherited)

ExtentWidth

public int ExtentWidth { get; }

Extent width of the scroll area. (inherited)

LineWidth

public int LineWidth { get; set; }

No description available.

LineHeight

public int LineHeight { get; set; }

No description available.

ScrollingStyle

public ScrollingStyle ScrollingStyle { get; set; }

The scrolling style. (inherited)

Methods

MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

protected override void MeasureOverride(int availableWidth, int availableHeight, out int desiredWidth, out int desiredHeight)

Measurement override. Implement your size-to-content logic here. (inherited)

ParameterTypeDescription
availableWidthintAvailable size that parent can give to the child. May be MaxValue(when parent wants to measure to content). This is soft constraint. Child can return bigger size to indicate that it wants bigger space and hope that parent can throw in scrolling...
availableHeightint
desiredWidthout int
desiredHeightout int

ArrangeOverride(int arrangeWidth, int arrangeHeight)

protected override void ArrangeOverride(int arrangeWidth, int arrangeHeight)

ArrangeOverride allows for the customization of the positioning of children. (inherited)

ParameterTypeDescription
arrangeWidthint
arrangeHeightint

LineDown()

public void LineDown()

No description available.

LineLeft()

public void LineLeft()

No description available.

LineRight()

public void LineRight()

No description available.

LineUp()

public void LineUp()

No description available.

PageDown()

public void PageDown()

No description available.

PageLeft()

public void PageLeft()

No description available.

public void PageRight()

No description available.

PageUp()

public void PageUp()

No description available.

OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

protected override void OnButtonDown(GHIElectronics.TinyCLR.UI.Input.ButtonEventArgs e)

An event reporting a button was pressed. (inherited)

ParameterTypeDescription
eGHIElectronics.TinyCLR.UI.Input.ButtonEventArgs

Events

ScrollChanged

public event ScrollChangedEventHandler ScrollChanged

Event handler if the scroll changes. (inherited)