private static void DoubleClickCommand_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            var Element = o as System.Windows.Controls.Control;

            if (Element == null)
            {
                throw new ArgumentException("Type mismatch", "o");
            }

            var Value    = (ICommand)e.NewValue;
            var Listener = GetDoubleClickCommandWeakEventListener(Element);

            if (Value != null)
            {
                if (Listener == null)
                {
                    Listener = new DoubleClickCommandEventListener();
                }

                SetDoubleClickCommandWeakEventListener(Element, Listener);
                DoubleClickEventManager.AddListener(Element, Listener);
            }
            else if (Listener != null)
            {
                SetDoubleClickCommandWeakEventListener(Element, null);
                DoubleClickEventManager.RemoveListener(Element, Listener);
            }
        }
        private static void DoubleClickCommand_PropertyChanged(DependencyObject o, DependencyPropertyChangedEventArgs e)
        {
            var Element = o as System.Windows.Controls.Control;
            if (Element == null)
                throw new ArgumentException("Type mismatch", "o");

            var Value = (ICommand)e.NewValue;
            var Listener = GetDoubleClickCommandWeakEventListener(Element);
            if (Value != null)
            {
                if (Listener == null)
                    Listener = new DoubleClickCommandEventListener();

                SetDoubleClickCommandWeakEventListener(Element, Listener);
                DoubleClickEventManager.AddListener(Element, Listener);
            }
            else if (Listener != null)
            {
                SetDoubleClickCommandWeakEventListener(Element, null);
                DoubleClickEventManager.RemoveListener(Element, Listener);
            }
        }