Skip to main content

FocusChangedEventArgs Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Input

The FocusChangedEventArgs class contains information about focus states

public class FocusChangedEventArgs : InputEventArgs

Constructors​

FocusChangedEventArgs(ButtonDevice buttonDevice, DateTime timestamp, UIElement oldFocus, UIElement newFocus)​

public FocusChangedEventArgs(ButtonDevice buttonDevice, DateTime timestamp, UIElement oldFocus, UIElement newFocus) : base(buttonDevice, timestamp)

Constructs an instance of the FocusChangedEventArgs class.

ParameterTypeDescription
buttonDeviceButtonDevice
timestampDateTimeThe time when the input occured.
oldFocusUIElementThe element that previously had focus.
newFocusUIElementThe element that now has focus.

Fields​

OldFocus​

public readonly UIElement OldFocus

The element that previously had focus.

NewFocus​

public readonly UIElement NewFocus

The element that now has focus.