Skip to main content

Button Class

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

No description available.

public class Button : ContentControl, IDisposable

Constructors

Button()

public Button()

No description available.

Properties

Alpha

public ushort Alpha { get; set; }

No description available.

RadiusBorder

public int RadiusBorder { get; set; }

Corner radius in pixels for the Scale9Image-rendered bar. (inherited)

IsPressed

public bool IsPressed { get; }

No description available.

Methods

OnTouchUp(TouchEventArgs e)

protected override void OnTouchUp(TouchEventArgs e)

Handles the touch up event. (inherited)

ParameterTypeDescription
eTouchEventArgsTouch event arguments.

OnTouchDown(TouchEventArgs e)

protected override void OnTouchDown(TouchEventArgs e)

Handles the touch down event. (inherited)

ParameterTypeDescription
eTouchEventArgsTouch event arguments.

OnButtonDown(ButtonEventArgs e)

protected override void OnButtonDown(ButtonEventArgs e)

An event reporting a button was pressed. (inherited)

ParameterTypeDescription
eButtonEventArgs

OnButtonUp(ButtonEventArgs e)

protected override void OnButtonUp(ButtonEventArgs e)

An event reporting a button was released. (inherited)

ParameterTypeDescription
eButtonEventArgs

OnRender(DrawingContext dc)

public override void OnRender(DrawingContext dc)

Renders the DataGrid onto it's parent container's graphics. (inherited)

ParameterTypeDescription
dcDrawingContext

Dispose()

public void Dispose()

Releases buffered memory (the unmanaged firmware/application buffers). (inherited)

Dispose(bool disposing)

protected virtual void Dispose(bool disposing)

Closes a response stream, if present. (inherited)

ParameterTypeDescription
disposingboolNot used.

Events

Click

public event RoutedEventHandler Click

Fires when the user commits the current selection — either by tapping a ListBoxItem or by pressing HardwareButton.Select while the ListBox has focus. The event source is the committed ListBoxItem. (inherited)