Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clear Bindings #1360

Open
mettex77 opened this issue Jul 26, 2018 · 1 comment
Open

Clear Bindings #1360

mettex77 opened this issue Jul 26, 2018 · 1 comment

Comments

@mettex77
Copy link

Hi,

I was facing an issue with the bindings when showing/hideing the whole dockingmanager by removing it from the VisualTree.

Issue occured when we have a floating window which is loaded and closed accordingly to the add/remove of dockingmanager.

We solved the issue by calling SetBinding(VisibilityProperty, string.Empty); in OnClose-Method of LayoutAnchorableFloatingWindowControl. Now it looks like this:

    protected override void OnClosed( EventArgs e )
    {
      var root = Model.Root;
      root.Manager.RemoveFloatingWindow( this );
      root.CollectGarbage();
      if( _overlayWindow != null )
      {
        _overlayWindow.Close();
        _overlayWindow = null;
      }

      base.OnClosed( e );

      if( !CloseInitiatedByUser )
      {
        root.FloatingWindows.Remove( _model );
      }

      SetBinding(VisibilityProperty, string.Empty);

      _model.PropertyChanged -= new System.ComponentModel.PropertyChangedEventHandler( _model_PropertyChanged );
    }

Maybe this fix is of interest for you. Otherwise, just close the issue.

kind regards
mettex

@XceedBoucherS
Copy link
Collaborator

Hi,
This is already fixed in v3.6 and up.

Users of the community version currently have v3.4.
Users of the Commercial version currently have v3.7.
You can try for free the commercial version here : http://xceed.com/xceed-toolkit-plus-for-wpf/

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants