XAML:
<telerik:RadDocking Grid.Row="1" BorderThickness="0" Padding="0" Margin="5" x:Name="pnlDock">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup x:Name="pnlHelpGuides">
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
C#:UCEditor currentEditor = new UCEditor();
RadDocumentPane newPane = new RadDocumentPane() { Header = tabHeading, Title = tabHeading, Content = currentEditor, CanUserClose = true };
pnlHelpGuides.AddItem(newPane, Telerik.Windows.Controls.Docking.DockPosition.Center);
currentEditor.ImportDocument(e.Result as byte[]);
currentEditor.ShowEditor();
I load several documents based on user selection this way.
For some reason when user selects the first document and starts dragging get the following unhandled exception:
Cannot find a Resource with the Name/Key Theme [Line: 1693 Position: 52]
This only happens with the first document. Not subsequent ones. Everything works fine if I just ignore the error.
Right now I am just intercepting and handling for the error in App.xaml.cs.