private void ListenButtonCanvas_MouseLeftButtonUp(object sender, System.Windows.Input.MouseButtonEventArgs e) { Dispatcher.BeginInvoke(() => AudioButton.Source = new BitmapImage(new Uri("img/listen.png", UriKind.Relative))); _soundsAutoPlay = true; var autoPlayMsg = new ChangeAutoPlayMessage() { autoPlay = true }; Messenger.Default.Send <ChangeAutoPlayMessage>(autoPlayMsg); AutoPageTurn(); }
/// <summary> /// Handles an upcoming autoplay message from the View /// </summary> /// <param name="action">The ChangeAutoPlay message sent by the View</param> /// <returns></returns> private object UpdateAutoPlay(ChangeAutoPlayMessage action) { SoundsAutoPlay = action.autoPlay; return(null); }