RadialControllerConfiguration.TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind) RadialControllerConfiguration.TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind) RadialControllerConfiguration.TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind) RadialControllerConfiguration.TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind) RadialControllerConfiguration.TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind) Method

Definition

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

public : Platform::Boolean TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind type)
bool TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind type) const;
public bool TrySelectDefaultMenuItem(RadialControllerSystemMenuItemKind type)
Public Function TrySelectDefaultMenuItem(type As RadialControllerSystemMenuItemKind) As bool
var bool = radialControllerConfiguration.trySelectDefaultMenuItem(type);

Parameters

Returns

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

See also