Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1255
An event to get the current layout xml?
posted

What is the best way to monitor the Layout of a XamDockManager?  Is there a single event I can handle when a user moves a pane or changes the layout in any way? Or can you suggest several events to handle?  What about when I programmatically call LoadLayout?

In MVVM architecture I have to bind the Layout Xml to a property on my ViewModel.  I am building an Attached behavior to do this but can't find the correct event to handle to update my xml string.  I already have an attached behavior to facilitate loading a layout from my LayoutInfo object.  But but I'm having trouble getting the xml from the dock manager to my VM property when the user has customized their current layout.

Any suggestions are very much appreciated!

thanks.

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello kcongdon,

    Thank you for your post. I have been looking through it and I suggest you use the PaneDragEnded event to update your xml string, because this event occurs evrytime a pane is docked on a different place in the XamDockManager. Please note, we are making efforts to ensure all posts are addressed by an Infragistics expert. We believe that the other community members could benefit from this thread as well.

    Feel free to write me if you need further assistance.

Children