void WordListBox_OnKeyUp(object sender, KeyRoutedEventArgs e) { if (e.Key == Windows.System.VirtualKey.Enter) { string text = WordListBox.Text; if (text.Length > 0) { Windows.UI.ViewManagement.InputPane.GetForCurrentView().TryHide(); ResultsTextBlock.Text = text; FadeOutResults.Begin(); } } }
protected override void OnNavigatedFrom(NavigationEventArgs e) { FadeOutResults.Stop(); }