private void Control_PointerReleased(object sender, PointerRoutedEventArgs e) { var item = sender as ContentControl; item.Scale(1, 1, (float)item.ActualWidth / 2, (float)item.ActualHeight / 2, _animationDuration).Start(); SelectedItem = item.DataContext != SelectedItem ? item.DataContext as NEO : null; }
private void Control_KeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter || e.Key == Windows.System.VirtualKey.Space || e.Key == Windows.System.VirtualKey.GamepadA) { var item = sender as ContentControl; item.Scale(1.1f, 1.1f, (float)item.ActualWidth / 2, (float)item.ActualHeight / 2, _animationDuration).Start(); SelectedItem = item.DataContext != SelectedItem ? item.DataContext as NEO : null; } }