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

How to show RadPane back after I x it

1 Answer 59 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Kashif Imran
Top achievements
Rank 1
Kashif Imran asked on 25 Apr 2009, 11:58 PM
If I x a pane, how can I get it back? I guess it is only hidden because I have video in the pane and i can hear the sould.

I tried setting IsHidden = false as well as IsSelected to true and .Visibility to Visible but it does not appear.

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 27 Apr 2009, 03:44 PM
Hello Kashif Imran,

If you hide the pane, IsHidden set to True should work as expected., If the pane is in a ToolWindow, it will not work as the pane will not be hidden at all, it will just be in a closed window. You can use this code to show the pane in any case:
private static void ShowPane(RadPane pane) 
    if (pane.IsHidden) 
    { 
        pane.IsHidden = false
    } 
 
    var parentWindow = pane.ParentOfType<Telerik.Windows.Controls.Docking.ToolWindow>(); 
    if (parentWindow != null && parentWindow.Visibility == Visibility.Collapsed) 
    { 
        bool isDockable = pane.IsDockable; 
 
        if (!isDockable) 
        { 
            pane.MakeFloatingDockable(); 
        } 
 
        pane.MakeFloatingOnly(); 
 
        if (isDockable) 
        { 
            pane.MakeFloatingDockable(); 
        } 
    } 


Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Docking
Asked by
Kashif Imran
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or