Focus Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Moves the button focus to a specified display element.
Namespace: Microsoft.SPOT.Input
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Shared Function Focus ( _
element As UIElement _
) As UIElement
public static UIElement Focus(
UIElement element
)
public:
static UIElement^ Focus(
UIElement^ element
)
static member Focus :
element:UIElement -> UIElement
public static function Focus(
element : UIElement
) : UIElement
Parameters
- element
Type: Microsoft.SPOT.Presentation. . :: . .UIElement
An object specifying the display element to which you want to move the button focus.
Return Value
Type: Microsoft.SPOT.Presentation. . :: . .UIElement
An object specifying the display element that currently has the button focus.
Remarks
Button focus refers to state of the display element that is currently receiving input from a button device. At any specific point in time, there can be only one element on a button device's display that has the button focus. The display element with the current button focus has its IsFocused property set to true.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.