RadPanelGroup and Visibility collapsed not working

5 posts, 1 answers
  1. Edo Cof
    Edo Cof avatar
    47 posts
    Member since:
    Feb 2006

    Posted 17 Oct 2009 Link to this post

    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.
  2. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. hermann
    hermann avatar
    43 posts
    Member since:
    Jun 2011

    Posted 20 Oct 2011 Link to this post

    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
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 20 Oct 2011 Link to this post

    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 >>

  6. hermann
    hermann avatar
    43 posts
    Member since:
    Jun 2011

    Posted 20 Oct 2011 Link to this post


    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
Back to Top
DevCraft banner