question

CraigMuckleston avatar image
0 Votes"
CraigMuckleston asked RichardZhang-MSFT edited

RadioMenuFlyoutItem - Changing the 'dot' icon

I am using the RadioMenuFlyoutItem in my UWP app. I want to change the default 'dot' that appears when it's checked to a tick. I have seen the Icon property, but this just allows me to add another icon net to the dot.

There is no Style template for the RadioMenuFlyoutItem in generic.xaml, so how can I achieve this?

windows-uwp
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichardZhang-MSFT avatar image
0 Votes"
RichardZhang-MSFT answered RichardZhang-MSFT edited

Hello,

Welcome to Microsoft Q&A.

RadioMenuFlyoutItem does not provide properties for setting the check icon.

However, RadioMenuFlyoutItem belongs to the WinUI project, and its default style definition is not in the generic.xaml provided by the system.

Here is the default style (RS5):

RadioMenuFlyoutItem_rs5_themeresources.xaml

You can copy the corresponding default control template to your project, then modify CheckGlyph to the specified icon, and reference it in RadioMenuFlyoutItem.

Thanks.


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.