src/FingersDance/MainSurfaceWindow.xaml.cs
changeset 95 07972aa3f2e0
parent 91 0f29e2660bb7
child 97 31b24064b28f
--- a/src/FingersDance/MainSurfaceWindow.xaml.cs	Wed Sep 23 17:11:43 2009 +0200
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs	Wed Sep 23 22:22:52 2009 +0200
@@ -336,16 +336,17 @@
             SessionInput.Name = "SessionInput";
 
             try{
-                //2-Recuperer la Grid qui contient le UCListVideo et l'ajouter.
+                //2-Recuperer la Grid (Layout root du UC screen)qui contient le UCListVideo et l'ajouter.
                 Grid actualGrid = (Grid)(((UserControlListVideo)sender).Parent);
                 actualGrid.Children.Add(SessionInput);
-
+                
+                //2.5 rensegner la video choisie au screen
+                ((UserControlScreen)actualGrid.Parent).Path = ((CustomListBoxItem)sender).Path;
                 //3-Creation des Events
                 SessionInput.EH_SurfaceButtonSubmit_ContactDown += new System.EventHandler(this.SessionInput_EH_SurfaceButtonSubmit_ContactDown);
                 //4-Supression du UC List Video
                 actualGrid.Children.Remove((UserControlListVideo)sender);
 
-
                 //Init Scatter View Properties and Add it to the scatter view.
                 /*scatterViewItemSessionInput.Content = SessionInput;
                 scatterViewItemSessionInput.CanMove = true;