private void Map_Holding(object sender, HoldingRoutedEventArgs e) { M1.Play(); var P = (sender as Button).Tag as Point; Marked[P.x, P.y] = !Marked[P.x, P.y]; if (Marked[P.x, P.y]) { (sender as Button).Style = (Style)ioh[LocalTheme.Local.MarkMineResouceName]; // (sender as Button).Background =; } else { (sender as Button).Style = (Style)ioh[LocalTheme.Local.NomalButtonResouceName]; } }
private void B_RightTapped(object sender, RightTappedRoutedEventArgs e) { try { M1.Play(); var P = (sender as Button).Tag as Point; Marked[P.x, P.y] = !Marked[P.x, P.y]; if (Marked[P.x, P.y]) { (sender as Button).Style = (Style)ioh[LocalTheme.Local.MarkMineResouceName]; } else { (sender as Button).Style = (Style)ioh[LocalTheme.Local.NomalButtonResouceName]; } } catch { } }
private void MediaElement_MediaEnded(object sender, RoutedEventArgs e) { M1.Position = new TimeSpan(0, 0, 1); M1.Play(); }