protected override void OnPointerExited(PointerRoutedEventArgs e) { base.OnPointerExited(e); VisualStateManager.GoToState(this, "Normal", false); OnPointExit?.Invoke(DataContext); }
protected override void OnMouseLeave(MouseEventArgs e) { base.OnMouseLeave(e); OnPointExit?.Invoke(DataContext); Background = _obg; }