Share via


RadialControllerConfiguration.TrySelectDefaultMenuItem Method

Definition

Attempts to select and activate a tool from the collection of built-in RadialController tools supported for the current app context.

public:
 virtual bool TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind type) = TrySelectDefaultMenuItem;
bool TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind const& type);
public bool TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind type);
function trySelectDefaultMenuItem(type)
Public Function TrySelectDefaultMenuItem (type As RadialControllerSystemMenuItemKind) As Boolean

Parameters

type
RadialControllerSystemMenuItemKind

The built-in tool to select and activate.

Returns

Boolean

bool

true if the tool can be selected; otherwise false.

Remarks

RadialController menu operations, including CreateFromKnownIcon, CreateFromIcon, CreateFromFontGlyph, CreateFromFontGlyph, ResetToDefaultMenuItems, SetDefaultMenuItems, and TrySelectDefaultMenuItem, should be performed on the UI thread. Doing so in a background worker thread can cause issues with event handlers on the UI thread.

Applies to

See also