Focus Method
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Moves the focus for a button device to the specified display element.
Namespace: Microsoft.SPOT.Input
Assembly: Microsoft.SPOT.TinyCore (in Microsoft.SPOT.TinyCore.dll)
Syntax
'Declaration
Public Function Focus ( _
obj As UIElement _
) As UIElement
public UIElement Focus(
UIElement obj
)
public:
UIElement^ Focus(
UIElement^ obj
)
member Focus :
obj:UIElement -> UIElement
public function Focus(
obj : UIElement
) : UIElement
Parameters
- obj
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 the state of the 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 button device 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.