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