Hello! I am learning an RadDocking example from Telerik Wpf Demo. When I try to unpin (hide) a RadPane I see an System.NullReferenceException. What's the problem?
Here's the code.
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<telerik:RadDocking x:Name="radDocking1"
RetainPaneSizeMode="DockingAndFloating"
CanAutoHideAreaExceedScreen="True"
Grid.Row="0" Margin="0 0 0 10"
BorderThickness="0"
Padding="0">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer>
<telerik:RadPaneGroup>
<telerik:RadDocumentPane Title="Description">
</telerik:RadDocumentPane>
<telerik:RadPane Header="NotDragable" CanFloat="False">
<telerik:RadPane.Content>
<TextBlock TextWrapping="Wrap" Text="This pane cannot be dragged, because it has its property CanFloat set 'False'." />
</telerik:RadPane.Content>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer MaxWidth="600" telerik:DockingPanel.InitialSize="210,150"
Name="LeftContainer" InitialPosition="DockedLeft">
<telerik:RadPaneGroup x:Name="Group1">
<telerik:RadPane x:Name="Pane1" Header="Server Explorer">
</telerik:RadPane>
<telerik:RadPane x:Name="Pane2" Header="Toolbox">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer MaxWidth="679" telerik:DockingPanel.InitialSize="210,150"
x:Name="RightContainer" InitialPosition="DockedRight">
<telerik:RadPaneGroup x:Name="Group2">
<telerik:RadPane x:Name="Pane3" Header="Solution Explorer">
</telerik:RadPane>
<telerik:RadPane x:Name="Pane4" Header="Properties">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer InitialPosition="FloatingDockable"
telerik:RadDocking.FloatingLocation="450, 250"
telerik:RadDocking.FloatingSize="300, 220">
<telerik:RadPaneGroup>
<telerik:RadPane Header="Not Document Pane" CanDockInDocumentHost="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
<telerik:RadSplitContainer telerik:DockingPanel.InitialSize="200,180"
x:Name="BottomContainer" InitialPosition="DockedBottom">
<telerik:RadPaneGroup x:Name="Group3">
<telerik:RadPane x:Name="Pane5" Header="Output">
</telerik:RadPane>
<telerik:RadPane x:Name="Pane6" Header="Error List">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
</Grid>
I have tested your code, but I have not found the specified problem. I have attached a sample project. Could you look at it and tell me if I am missing anything?
Could you also specify what version of the Telerik UI for WPF you are using?