public static void KillEventsForIdentifiedUIElement(UIElement element)
 {
     Debug.WriteLineIf(DebugSettings.DEBUG_EVENTS, "AddIdentifiedUIElement:" + element.ToString());
     if (killEventEnabledIdentifiedDependencyObjects.Contains(element))
         return;
     killEventEnabledIdentifiedDependencyObjects.Add(element);
 }
        private bool UIElementsRelated(UIElement e1, UIElement e2)
        {
            DependencyObject parentE1 = ((IdentifiedInteractionArea)this.Visualizer).GetRegisteredIdentifiedAncestor(e1);
            DependencyObject parentE2 = ((IdentifiedInteractionArea)this.Visualizer).GetRegisteredIdentifiedAncestor(e2);

            if (parentE1 == null || parentE2 == null) return false;

            Debug.WriteLineIf(DebugSettings.DEBUG_EVENTS, (e1 != null? e1.ToString() : "null") + " parent: " + (parentE1 != null? parentE1.ToString() : "null"));
            Debug.WriteLineIf(DebugSettings.DEBUG_EVENTS, (e2 != null? e2.ToString() : "null") + " parent: " + (parentE2 != null? parentE2.ToString() : "null"));

            if (parentE1.Equals(parentE2))
                return true;
            return false;
        }