I am using .NET 4.5 with winforms. I use ElementHost in order to use XAML within my application, where the only XAML portion is the Ribbon. My application has one parent winform, hosting multiple child winforms.
When I click on any child forms within the application, the forms focus as expected (the GotFocus event handler). However, when I click on anything that is a dropdown on the ribbon, the child forms no longer trigger the GotFocus handler even though I can still drag the forms with my mouse. Also, when I click on regular buttons that are not dropdown within the Ribbon, the child form will activate the GotFocus handler as expected.
Here is example dropdown code from the ribbon. If I click on the main button that triggers the dropdown, I can no longer trigger the GotFocus handler on any child forms.
<RibbonMenuButton LargeImageSource="" >
<RibbonMenuItem ImageSource = "" />
<RibbonMenuItem ImageSource = "" />
<RibbonMenuItem ImageSource = "" />
</RibbonMenuButton>
Did I discover a bug perhaps?