Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
245
Application crash when adding MenuTool to the QAT
posted

Hi

Here is the case. When I try to add to QAT item that is of MenuTool type, application crash (exception is caused by trying to set in cloned control ItemsSource property to the ItemsSource collection of the original MenuTool, but cloned MenuTool already contains some items). From what I've investigated, this occurs only when MenuTool is declared  as a separate control with some ButtonTools inside, and put as an single control to the ApplicationMenu (see SeparatedMenu class in provided sample). Case doesn't happen when this kind of menu is declared as a  whole in the ApplicationMenu.

Declaring menu items as separate controls is important case for me, because ApplicationMenu is dynamically composed in runtime.

So, what are my options for being able to add such items to the QAT?

I've attached simple application that reproduces this issue.

 

QATTtest.zip