private void img_binClose_Tapped(object sender, TappedRoutedEventArgs e) { Story_Arrow.Stop(); img_Arrow.Visibility = Visibility.Collapsed; Story_ck1.Begin(); Img_ck1.Visibility = Visibility.Visible; img_binClose.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(this.BaseUri, "Assets/binopen.png")); }
private void binclose_Tapped(object sender, TappedRoutedEventArgs e) { Story_Arrow.Pause(); Img_Arrow.Visibility = Visibility.Collapsed; if (s == 0) { binclose.Source = new Windows.UI.Xaml.Media.Imaging.BitmapImage(new Uri(this.BaseUri, "Assets/binopen.png")); Storyboard1.Begin(); Storyboard2.Begin(); ck1.Visibility = Visibility.Visible; cockroach.Visibility = Visibility.Visible; s = 1; } }
public MainPage() { this.InitializeComponent(); //MediaElement sound = new MediaElement(); //sound.AudioCategory = Windows.UI.Xaml.Media.AudioCategory.BackgroundCapableMedia; //StorageFolder folder = await Package.Current.InstalledLocation.GetFolderAsync("Assets"); Story_Arrow.Begin(); Story_Arrow.Completed += Story_Arrow_Completed; Storyboard1.Completed += Storyboard1_Completed; Storyboard2.Completed += Storyboard1_Completed; Storyboard3.Completed += Storyboard1_Completed; Story_ck3.Completed += Storyboard1_Completed; Story_ck4.Completed += Storyboard1_Completed; Story_ck5.Completed += Storyboard1_Completed; Story_ck6.Completed += Storyboard1_Completed; }
void Story_Arrow_Completed(object sender, object e) { Story_Arrow.Begin(); }
public PG_Level2() { this.InitializeComponent(); Story_Arrow.Completed += Story_Arrow_Completed; Story_Arrow.Begin(); }