true if the element is focused; otherwise, false.
Applications may have multiple focuses depending on the implementation of the underlying toolkit. Menus and modals in particular may leave multiple items with focus.
The following example shows conditionally setting a background color based on the focus state.
C# Example
void UpdateBackground ()
{
if (myElement.IsFocused)
myElement.BackgroundColor = Color.Red;
else
myElement.BackgroundColor = Color.Blue;
}