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