public CurvePolygonPointView() { InitializeComponent(); if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { (this as IMouseProximityActivatable).IsActivated = true; } else { (this as IMouseProximityActivatable).IsActivated = false; MouseProximityActivation.Register(this); } }
public ConnectorDot() { InitializeComponent(); AnyDotDragging += OnAnyDotDragging; if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this)) { (this as IMouseProximityActivatable).IsActivated = true; } else { (this as IMouseProximityActivatable).IsActivated = false; MouseProximityActivation.Register(this); } }