protected override bool HitTestOverride(Point position) { return(Background != null && VisualSize.Contains(position)); }
protected override bool HitTestOverride(Point position) { return(VisualSize.Contains(position) && (Background != null || BorderBrush != null && IsOverBorder(position, VisualSize, BorderThickness, CornerRadius))); }