/// <summary>
        /// Synchronize diagram after activation of panel with DB structure
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        public async void AnchorableDesignerActiveChangedHandler(object sender, System.EventArgs e)
        {
            var anchorable = sender as LayoutAnchorable;
            DatabaseModelDesigner designer = anchorable?.Content as DatabaseModelDesigner;

            if (designer == null)
            {
                return;
            }

            if (!anchorable.IsActive)
            {
                _lastFocued = anchorable;
                return;
            }

            if (_lastFocued != null && _lastFocued.Equals(anchorable))
            {
                return;
            }

            Mouse.OverrideCursor = Cursors.Wait;
            var facade = new DiagramFacade(designer.ViewModel);
            await facade.RefreshDiagram(designer.ModelDesignerCanvas);

            Mouse.OverrideCursor = null;
        }