RadialControllerConfiguration.TrySelectDefaultMenuItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
The built-in tool to select and activate.
Returns
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.