src/FingersDance.Control.Player/UserControlPlayer.xaml.cs
changeset 165 e78e40b9d761
parent 163 d5148710e229
child 168 d70ee2002f75
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs	Fri Oct 16 22:19:24 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml.cs	Sun Oct 18 17:42:21 2009 +0200
@@ -29,7 +29,7 @@
         #endregion
 
         public event EventHandler PlayerOpened;
-
+        public event EventHandler PlayerStopOrPause;
         public UserControlPlayer()
         {
             this.InitializeComponent();
@@ -73,6 +73,8 @@
         public void playerPause()
         {
             MediaElementVideo.Pause();
+            if (PlayerStopOrPause != null)
+                PlayerStopOrPause(this, new EventArgs());
         }
         public void playerPlay()
         {
@@ -81,10 +83,13 @@
         public void playerStop()
         {
             MediaElementVideo.Stop();
+            if (PlayerStopOrPause != null)
+                PlayerStopOrPause(this, new EventArgs());
         }
         
         #endregion
 
+        
         #region Button Simple Player Actions
         private void ButtonPlayPause_ContactDown(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
         {