Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Menu Item Tool tip not appearing when in a datatemplate #150

Closed
stephendye opened this issue Aug 17, 2015 · 2 comments
Closed

Menu Item Tool tip not appearing when in a datatemplate #150

stephendye opened this issue Aug 17, 2015 · 2 comments
Assignees
Labels
Milestone

Comments

@stephendye
Copy link

I need to have a recent files list in the application menu. I am using the application menu's RightPaneContent for this. My Xaml is below:

<Fluent:Ribbon.Menu>
                <Fluent:ApplicationMenu x:Uid="r:RibbonApplicationMenu_1" Header="File" Name="RibbonApplicationMenu">

  <Fluent:ApplicationMenu.RightPaneContent>
   <ItemsControl ItemsSource="{Binding Source={StaticResource DefaultFileValues}, Path=RecentFilesList}">
                                <ItemsControl.ItemTemplate>
                                    <DataTemplate>
                                        <Fluent:MenuItem Header="{Binding ShortName}"  ToolTip="{Binding FullName}" Description="{Binding FullName}"  IsEnabled="{Binding IsAccessible}" Click="RibbonHighlightingList_MostRecentFileSelected" />                                                                                
                                    </DataTemplate>
                                </ItemsControl.ItemTemplate>                               
                            </ItemsControl>
    </Fluent:ApplicationMenu.RightPaneContent>
 </Fluent:ApplicationMenu>
</Fluent:Ribbon.Menu>

When the click event I have attached to the menuitem fires, I can see by inspecting the tooltip property on the menuitem in debug that the tooltip content is not set, but the description property is set.

The strange thing is that this only appears to happen when I wrap the menu items in the datatemplate. When I just put hard coded menu items in the right pane the tooltip is displayed. Is this a bug or does anyone have any suggestions for a workaround?

Any thoughts would be greatfully appreciated

Stephen Dye

@batzen
Copy link
Member

batzen commented Aug 17, 2015

I am very busy right now. Will have a look at this next week, at least I hope so.

@stephendye
Copy link
Author

Ok thanks. Much appreciated!!

@batzen batzen self-assigned this Aug 23, 2015
@batzen batzen added this to the Next milestone Aug 23, 2015
@batzen batzen closed this as completed in b9bb1ff Aug 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants