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
460
Databound controls lose data when tab dragged out
posted

I have a splitpane that has a couple of content panels in it.  One of the panels has the XamlOutLookBar which is databound to a collection in the main application.  When a user drags this pane out to be floating.  All of the data is lost until you re-dock the control.  How can this be stopped?

Parents
No Data
Reply
  • 54937
    Offline posted

    There was an issue similar to this previously reported that was addressed in a previous hotfix (I believe it was also in the 8.2 release). Essentially the DataContext (which is an inherited property) was not carried over from the xamDockManager to the PaneToolWindows that host the floating panes. You can get around this by either setting the DataContext directly on the ContentPane or hook the ToolWindowLoaded event and bind (or set) the DataContext of the tool window to the DataContext of the xamDockManager.

Children
No Data