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

RadPanelGroup and Visibility collapsed not working

4 Answers 183 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Edo Cof
Top achievements
Rank 1
Edo Cof asked on 17 Oct 2009, 09:51 AM
I have the next code:
            <doc:RadPaneGroup Visibility="Collapsed"
                <doc:RadPane Header="Build"
                </doc:RadPane> 
            </doc:RadPaneGroup> 

but the RadPane is visible anyway. When i set it in code, then everything works.
I check and the Visibility property is always Visible. I don't know who set it to visible, but it's sure that i didn't.

4 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 20 Oct 2009, 12:15 PM
Hello Matjaz,

The RadPaneGroup control changes its Visibility property automatically when its visible panes vary. If you want to make a RadPaneGroup invisible you just need to make all its panes hidden (to set their IsHidden property to true). As the RadPaneGroup uses its Visibility property internally you shouldn't change it yourself.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
hermann
Top achievements
Rank 1
answered on 20 Oct 2011, 04:01 PM
Hi,
I wonder why you are not using the Visibility prop as this seems to me far more WPF-ish than to set all children's IsHidden prop to true...
Is it because RadDocking is in an early state of development and maybe this will be cleaned up lateron?

kind regards,
Hermann
0
Miroslav Nedyalkov
Telerik team
answered on 20 Oct 2011, 04:48 PM
Hello Hermann,

We are not using the Visibility property is it is a property that comes from the UIElment class and it means something different to the framework and we didn't want to override its original meaning. Hope this makes sense.

Best wishes,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
hermann
Top achievements
Rank 1
answered on 20 Oct 2011, 06:06 PM

Hi,

"Visibility is a property that comes from the UIElment class and it means something different to the framework"

Can you explain what your different meaning of Visibility in this case is - just for curiosity?

For me, Visibility fundamentally means, that a UIElement with Visibility=collapsed is - together with its children - not visible...

see Microsofts point of view which states that it SETs the visibility.

Yours sincerely
Hermann
Tags
Docking
Asked by
Edo Cof
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
hermann
Top achievements
Rank 1
Share this question
or