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 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

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

See Also

Reference

ButtonDevice Class

Microsoft.SPOT.Input Namespace