Ejemplo n.º 1
0
 private void removeRootVisualisedDrawable()
 {
     if (targetDrawable != null)
     {
         treeContainer.Remove(targetDrawable);
         targetDrawable.Dispose();
         targetDrawable = null;
     }
 }
Ejemplo n.º 2
0
        void IContainVisualisedDrawables.RemoveVisualiser(VisualisedDrawable visualiser)
        {
            target           = null;
            targetVisualiser = null;
            treeContainer.Remove(visualiser);

            if (Target == null)
            {
                propertyDisplay.State = Visibility.Hidden;
            }
        }
Ejemplo n.º 3
0
        private void removeRootVisualisedDrawable(bool hideProperties = true)
        {
            if (hideProperties)
            {
                propertyDisplay.State = Visibility.Hidden;
            }

            if (targetDrawable != null)
            {
                if (targetDrawable.Parent != null)
                {
                    // targetDrawable may have gotten purged from the TreeContainer
                    treeContainer.Remove(targetDrawable);
                    targetDrawable.Dispose();
                }
                targetDrawable = null;
            }
        }