Share via


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

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

See Also

Reference

Buttons Class

Microsoft.SPOT.Input Namespace