private void rightSpinDeck_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (rightSpinDeck == null) return; SpinCard selected = (SpinCard)rightSpinDeck.SelectedItem; if (selected == rightMouseCard) { slideMainKeysDown.Begin(); leftSpinDeck.ItemsSource = (SpinCardCollection)Resources["leftMouseCards"]; leftSpinDeck.SelectedIndex = 0; } else if (_lastRightCardSelected == rightMouseCard) { slideMainKeysUp.Begin(); leftSpinDeck.ItemsSource = (SpinCardCollection)Resources["leftKeyCards"]; leftSpinDeck.SelectedIndex = 0; } _lastRightCardSelected = selected; }
private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e) { _lastRightCardSelected = (SpinCard)rightSpinDeck.SelectedItem; _risc = new RemoteInputServiceClient(); }