private async void Main_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (Main.SelectedIndex == 0) { Ani2.Stop(); Ani1.Begin(); return; } if (Main.SelectedIndex == 1) { Ani2.Begin(); Ani1.Stop(); return; } Ani1.Stop(); Ani2.Stop(); if (Main.SelectedIndex == Main.Items.Count - 1 && !searchBegined) { Settings.Current.WelcomeFinished = true; Settings.Current.Save(); await StartSearching(); } }
public WelcomePage() { this.InitializeComponent(); AddFolderFrame.Navigate(typeof(AddFoldersView), new object()); Ani2.Stop(); Ani1.Begin(); }
public WelcomePage() { this.InitializeComponent(); AddFolderFrame.Navigate(typeof(AddFoldersView), new object()); Ani2.Stop(); Ani1.Begin(); Main.SelectionChanged += Main_SelectionChanged; }