RibbonWindow.cs crashes in DoHitTest when a TextBlock with an embedded Run is in a RibbonGroupBox

Jun 17, 2011 at 4:35 PM
Edited Jun 17, 2011 at 4:45 PM

The crash occurs when DoHitTest attempts to cast the object to a FrameworkElement. A run doesn't doesn't seem to derive from FrameworkElement.

Jun 17, 2011 at 4:38 PM

My apologies, I forgot to tell how to replicate the crash. Simply hover the mouse over the Run on the RibbonGroupBox. A workaround exists by using a StackPanel with a Horizontal ortientation, and using two textblocks.