Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.67 KB

radialcontrollerconfiguration_tryselectdefaultmenuitem_1342621095.md

File metadata and controls

28 lines (20 loc) · 1.67 KB
-api-id -api-type
M:Windows.UI.Input.RadialControllerConfiguration.TrySelectDefaultMenuItem(Windows.UI.Input.RadialControllerSystemMenuItemKind)
winrt method

Windows.UI.Input.RadialControllerConfiguration.TrySelectDefaultMenuItem

-description

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

-parameters

-param type

The built-in tool to select and activate.

-returns

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.

-examples

-see-also

Surface Dial interactions, Universal Windows Platform samples (C# and C++), Windows desktop sample