I have a UserControl as the content for a SplitButton's Content, which works as intended in the ribbon, but when added to the QAT falls apart. My main issue is the MultiBinding for the ribbon Button not binding correctly in the cloned object. I beleive I should be doing something in the OnCloneCreated event, but I'm not sure what to do within the actual handler, as I've tried a number of things that haven't worked.
The following link contains a .zip file with a basic example of my problem:
https://drive.google.com/file/d/0B7EiULWd_OKbSEV0WWtmRzdYTlU/view?usp=sharing
Alternatively the entirety of the code is included at the following pastebin, in one single text file:
I would appreciate advice on how to get the QAT version of the SplitButton to work the same as the ribbon version.
Edit:
I found a small error in my test program, that each version of the popup used a different View Model, all that needs changing is in MainWindow.xaml.cs the line
PopupContentUCViewModel vm;
should be replaced by:
private static PopupContentUCViewModel vm;
Even after chaning this the problem still persists
[Modified 8 years ago]