private void Search_Click(object sender, RoutedEventArgs e) { // Opaccity can now be 1 because the storyboard handles all animation from here on out SearchField.Opacity = 1; // Monitors the state of the stackpanel and performs the appropriate action when the icon is clicked if (SearchStackpanel.Tag.ToString() == "Open") { SearchStackpanel.Tag = "Closed"; EnterStoryboard.Begin(); SearchField.Focus(FocusState.Programmatic); SearchStackpanel.Background = new SolidColorBrush(Color.FromArgb(0xFF, 00, 69, 0x5C)); SearchIcon.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); // track a custom event GoogleAnalytics.EasyTracker.GetTracker().SendEvent("ui_action", "searchOpen_click", "Search Open: from ShoppingList", 0); } else if (SearchStackpanel.Tag.ToString() == "Closed") { SearchStackpanel.Tag = "Open"; ExitStoryboard.Begin(); SearchStackpanel.Background = new SolidColorBrush(Color.FromArgb(00, 00, 69, 0x5C)); SearchIcon.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 00, 00, 00)); // track a custom event GoogleAnalytics.EasyTracker.GetTracker().SendEvent("ui_action", "searchClose_click", "Search Close: from ShoppingList", 0); } }
private void SearchField_LostFocus(object sender, RoutedEventArgs e) { ExitStoryboard.Begin(); SearchStackpanel.Background = new SolidColorBrush(Color.FromArgb(00, 00, 69, 0x5C)); SearchIcon.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 00, 00, 00)); }
private void Search_Click(object sender, RoutedEventArgs e) { SearchField.Opacity = 1; if (SearchStackpanel.Tag.ToString() == "Open") { SearchStackpanel.Tag = "Closed"; EnterStoryboard.Begin(); SearchField.Focus(FocusState.Programmatic); SearchStackpanel.Background = new SolidColorBrush(Color.FromArgb(0xFF, 00, 69, 0x5C)); SearchIcon.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 0xFF, 0xFF, 0xFF)); // track a custom event GoogleAnalytics.EasyTracker.GetTracker().SendEvent("ui_action", "searchOpen_click", "Search Open: from RecipeFeed", 0); } else if (SearchStackpanel.Tag.ToString() == "Closed") { SearchStackpanel.Tag = "Open"; ExitStoryboard.Begin(); SearchStackpanel.Background = new SolidColorBrush(Color.FromArgb(00, 00, 69, 0x5C)); SearchIcon.Foreground = new SolidColorBrush(Color.FromArgb(0xFF, 00, 00, 00)); // track a custom event GoogleAnalytics.EasyTracker.GetTracker().SendEvent("ui_action", "searchClose_click", "Search Close: from RecipeFeed", 0); } }
private async void Save_Button_Click(object sender, RoutedEventArgs e) { if (!IsFormValid()) { return; } Saved_Popup.VerticalOffset = -((FrameworkElement)Saved_Popup.Child).ActualHeight / 2; Saved_Popup.HorizontalOffset = -((FrameworkElement)Saved_Popup.Child).ActualWidth / 2; Saved_Popup.IsOpen = true; Stopwatch sw = new Stopwatch(); EnterStoryboard.Begin(); sw.Start(); CApp ca = new CApp(cApp.name, CustomUri_TextBox.Text, false); StorageFolder localFolder = ApplicationData.Current.LocalFolder; foreach (var img in imgs) { await img.Value.CopyAsync(localFolder, $"{ca.name}_{img.Key}.png", NameCollisionOption.ReplaceExisting); } CStart.EditCustomApps(ca); sw.Stop(); if (sw.ElapsedMilliseconds < 2500) { await Task.Delay(2500 - (int)sw.ElapsedMilliseconds); } await Task.Delay(2500); ExitStoryboard.Begin(); await Task.Delay(1000); this.Frame.Navigate(typeof(CustomUriListViewPage)); }
private void Rectangle_PointerExited(object sender, PointerRoutedEventArgs e) { ExitStoryboard.Begin(); }
private void Rectangle_PointerExited() { ExitStoryboard.Begin(); }
private void Button_Click(object sender, RoutedEventArgs e) { ExitStoryboard.Begin(); ExitStoryboard.Completed += ExitStoryboard_Completed; }
public void Rectangle_PointerExited() { ExitStoryboard.Begin(); }
private void BGRectangle_PointerExited(object sender, Windows.UI.Xaml.Input.PointerRoutedEventArgs e) { ExitStoryboard.Begin(); }