LayoutControl: InvalidCastException when non-FrameworkElement is used in the control
FlowDocument (or other non-FrameworkElement) is used in LayoutControl.
When you move the mouse over the control - InvalidCastException is thrown.
You can test also with MS RichTextBox.
Available in R2 2017 Release