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

KeyTip not working for childs of ContentPresenter #244

Closed
Pendergast4Ever opened this issue Jan 15, 2016 · 2 comments
Closed

KeyTip not working for childs of ContentPresenter #244

Pendergast4Ever opened this issue Jan 15, 2016 · 2 comments
Assignees
Labels
Milestone

Comments

@Pendergast4Ever
Copy link

I have some ContentPresenters in my RibbonGroupBoxes that use a DataTemplateSelector to show controls depending on the type of datacontext. The KeyTip is not working for the controls in the DataTemplates.

The reason is that KeyTipAdorner is using LogicalTreeHelper,GetChildren in the method FindKeyTips.
The use of VisualTreeHelper would solve this problem.

@batzen
Copy link
Member

batzen commented Jan 15, 2016

Could you attach a small repro to this issue or fork the project, add your code to the showcase application and create a PR?
That way I can fix the bug and add it to the showcase application.

@Pendergast4Ever
Copy link
Author

I've added a RibbonGroupBox named "Bug" to the RibbonTabItem "KeyTips" in TestContent.xaml.
The RibbonGroupBox has a DataTemplate containing the Button "BugButton" with KeyTip="B".

The changed TestContent.xaml and the DataTemplateSelector class is included. Please rename the attached file to zip (upload as zip file was rejected).

KeyTip_ContentControl_Bug.txt

@batzen batzen added this to the 4.0.0 milestone Jan 15, 2016
@batzen batzen self-assigned this Jan 15, 2016
@batzen batzen closed this as completed in 7b74fde Jan 15, 2016
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