This is a migrated thread and some comments may be shown as answers.

RadPane Blank after re-activation.

2 Answers 143 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Avrohom
Top achievements
Rank 1
Iron
Iron
Avrohom asked on 17 Mar 2021, 12:15 AM

Apparently I came across the following situation. 

When having a RadPane as a TabbedDocument and Header set to Collapsed then if I dock another RadPane onto it as another TabbedDocument what happens after I remove the second RadPane, the first on shows a blank content, i.e. the original content of the first pane disappears. 

Look at the following Code example:

 

<telerik:RadDocking Grid.Row="1" IsRestricted="True" >
    <telerik:RadDocking.DocumentHost>
        <telerik:RadSplitContainer Focusable="False" IsTabStop="False" >
            <telerik:RadPaneGroup Focusable="False" >
                <telerik:RadPane Focusable="False" IsTabStop="False" Visibility="Collapsed"
                                 PaneHeaderVisibility="Collapsed" CanUserClose="False" IsDockable="False">
                  .... RadPane Contents Here ....
               </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer Focusable="False" IsTabStop="False"
                               telerik:RadDocking.FloatingLocation="300,300"
                               telerik:RadDocking.FloatingSize="600,350"
                               InitialPosition="FloatingDockable" >
        <telerik:RadPaneGroup x:Name="radPaneGroup" Focusable="False">
            <telerik:RadPane Header="Test" Focusable="False" LayoutUpdated="RadPane_LayoutUpdated" x:Name="radPane"
                             IsTabStop="False"
                             IsActive="True">
                <TextBlock FontSize="48">Testing...</TextBlock>
            </telerik:RadPane>
        </telerik:RadPaneGroup>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

2 Answers, 1 is accepted

Sort by
0
Avrohom
Top achievements
Rank 1
Iron
Iron
answered on 17 Mar 2021, 01:31 PM

After further investigation, it seems to be a Activation problem, 

If I somehow manually make the first Pane active, such as  

mainPane.IsActive = true;

it will show contents again. 

0
Avrohom
Top achievements
Rank 1
Iron
Iron
answered on 17 Mar 2021, 02:11 PM

Workaround I found so far is to hook on the Loaded event for the first RadPane and set the IsActive property to True.

private void mainPane_Loaded(object sender, RoutedEventArgs e)
{
    mainPane.IsActive = true;
}
Tags
Diagram
Asked by
Avrohom
Top achievements
Rank 1
Iron
Iron
Answers by
Avrohom
Top achievements
Rank 1
Iron
Iron
Share this question
or