I have a DocumentHost with some Panes bound to a PaneGroup. Everything works well, except when I want to Drag a Pane for Docking it, as soon as I grabbed the tab and want to drag it, an error message "System.ArgumentException was unhandled / Message: This pane cannot be removed from parent, because it doesn't have one!" appears. What is my mistake here?
Thanks for your support :)
Best regards
Thanks for your support :)
Best regards
<!-- Tabs --><telerik:RadDocking.DocumentHost> <telerik:RadSplitContainer Margin="0,-3,0,0" BorderThickness="1"> <telerik:RadPaneGroup TabStripPlacement="Top" ItemsSource="{Binding Tabs}" Background="#FFF0F0F0" BorderThickness="1" BorderBrush="#FF868686"> <telerik:RadPaneGroup.ItemContainerStyle> <Style TargetType="telerik:RadPane"> <Setter Property="BorderThickness" Value="0" /> <Setter Property="CanUserClose" Value="False" /> <Setter Property="CanFloat" Value="True" /> <Setter Property="CanUserPin" Value="False" /> <Setter Property="ContextMenuTemplate" Value="{x:Null}" /> </Style> </telerik:RadPaneGroup.ItemContainerStyle> <telerik:RadPaneGroup.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal" VerticalAlignment="Center"> <StackPanel.Resources> <Style TargetType="{x:Type Ellipse}"> <Setter Property="Width" Value="3"/> <Setter Property="Height" Value="3"/> <Setter Property="Fill" Value="Red"/> <Setter Property="Margin" Value="3,0,3,0"/> </Style> </StackPanel.Resources> <TextBlock Text="{Binding Title}" /> <Ellipse Visibility="{Binding IsDirty, Converter={StaticResource BooleanToVisibilityConverter}}" /> <Button Command="{Binding CloseCommand}" Width="12" Height="12" Margin="4,0,0,0" ToolTipService.ToolTip="Close Tab"> <Button.Content> <Path Data="M0,0 L6,6 M6, 0 L0,6" Stroke="Black" StrokeThickness="0.5" /> </Button.Content> </Button> </StackPanel> </DataTemplate> </telerik:RadPaneGroup.ItemTemplate> <telerik:RadPaneGroup.ContentTemplate> <DataTemplate> <Views:ClientDetails DataContext="{Binding}" IsDirty="{Binding IsDirty,Mode=TwoWay}" /> </DataTemplate> </telerik:RadPaneGroup.ContentTemplate> </telerik:RadPaneGroup> </telerik:RadSplitContainer></telerik:RadDocking.DocumentHost>