There is a WinForms component made on the basis of OpenTK.GLControl. It displays a chart:
This component is used in the WPF project, for it the following markup is made:
<UserControl x:Class="ProductionPlan.View.DiagramControl" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:WorkLoad="clr-namespace:WorkLoad;assembly=WorkLoad" xmlns:WorkPlan="clr-namespace:WorkPlan;assembly=WorkPlan" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" d:DesignHeight="600" d:DesignWidth="800" Loaded="UserControl_Loaded" mc:Ignorable="d"> <Grid> <GroupBox Header="План"> <WindowsFormsHost x:Name="WorkPlanWFHost"> <WorkPlan:WorkPlan x:Name="WorkPlan" /> </WindowsFormsHost> </GroupBox> </Grid> </UserControl> UserControl in turn lies in the RadDocumentPane , which is added to the collection of open panels here:
<telerik:RadDocking Grid.Row="1" PanesSource="{Binding OpenedPanes}"> <telerik:RadDocking.DockingPanesFactory> <telerik:DockingPanesFactory /> </telerik:RadDocking.DockingPanesFactory> While the panel is in the RadDocking container - the diagram is normally drawn, it reacts to mouse control - everything is in order. But it is necessary to pull out the panel with the diagram outside RadDocking - the diagram disappears and the panel looks like this:
In the chart drawing method in OpenTK I collect OpenGL errors - but they are not there, everything is clean.
Any ideas how to fix OpenGL rendering on a panel pulled out of RadDocking ?

