Home Forums WPF controls Xceed Toolkit Plus for WPF Avalon dock hiding LayoutAnchorables

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • User (Old forums)
    Post count: 23064
    #41770 |

    I am attempting to hide a LayoutAnchorable in my app. When the layout is loaded from an xml file (using XmlLayoutSerializer) then the Hide() method has no effect. Other wise (no file is found) the layout is read in MainWindow.xml where my LayoutAnchorable has x:Name property. In this case the Hide() method works. How can I get to the LayoutAnchorable instance that is loaded through the layout xml file?



    Imported from legacy forums. Posted by Doug (had 159 views)

    Fawzi [Xceed]
    Post count: 722

    Hi Doug,

    When loading from an xml file, hiding the LayoutAnchorable (named x:Name) will  hide a layoutAnhorable that is defined in MainWindow.xaml, not the one loaded.  So you will see no effect.

    You need to find it from LayoutRoot…looking for its children, until finding the one you want. If that doesn’t work, you need to send me a simple sample project which demonstrates the issue so that I could have a closer look.

    Imported from legacy forums. Posted by Fawzi [Xceed] (had 141 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.