izzyb
Topic Author
Posts: 2
Joined: 21 Mar 2023, 01:24

Tooltips don't appear for context menu items

22 Nov 2024, 01:15

I'm trying to add tooltips to context menu items, but finding that I can't get them to appear. Tooltips appear normally when I specify them on most other elements, but something with ContextMenu seems to prevent them from showing. Here's a snippet of my basic test case for this.
  <Button Width="300" Height="300">
    <Button.ContextMenu>
      <ContextMenu>
        <MenuItem Header="OPTION 1" ToolTip="Option 1 tooltip"/>
        <MenuItem Header="OPTION 2" ToolTip="Option 2 tooltip"/>
      </ContextMenu>
    </Button.ContextMenu>
  </Button>
I've tried this in both Unity and xamltoy and confirmed that no tooltip appears on hover. Is there a way to display tooltips within context menus?
Hoping to utilize tooltips more and even swap out the tooltip text when certain context menu items are disabled as well.
 
User avatar
sfernandez
Site Admin
Posts: 3364
Joined: 22 Dec 2011, 19:20

Re: Tooltips don't appear for context menu items

22 Nov 2024, 09:45

I see that WPF supports this scenario correctly, so could you please report it in our bugtracker?
We will add that functionality to context menu items too.
 
izzyb
Topic Author
Posts: 2
Joined: 21 Mar 2023, 01:24

Re: Tooltips don't appear for context menu items

22 Nov 2024, 19:29

 
User avatar
jsantos
Site Admin
Posts: 4823
Joined: 20 Jan 2012, 17:18
Contact:

Re: Tooltips don't appear for context menu items

25 Nov 2024, 17:17

Thanks for the ticket!

Who is online

Users browsing this forum: No registered users and 2 guests