FocusChangedEventArgs Class
Namespace: GHIElectronics.TinyCLR.UI.Input · Assembly: GHIElectronics.TinyCLR.UI
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.
| Parameter | Type | Description |
|---|---|---|
buttonDevice | ButtonDevice | |
timestamp | DateTime | The time when the input occured. |
oldFocus | UIElement | The element that previously had focus. |
newFocus | UIElement | The 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.