# HG changeset patch
# User sarias
# Date 1252659515 -7200
# Node ID f003ae353cd79cebfbe129a958037b234d2c6b6a
# Parent 9c6ea1f246dac2e9db1240c55084b4e8ed819083
Dev des 4 User Panels Resizables avec un pivot basique.
Test direct dans la solution FingersDance
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance.Control.Player/UserControlPlayer.xaml
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml Thu Sep 10 16:04:28 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -6,18 +6,20 @@
mc:Ignorable="d"
x:Class="FingersDance.Control.Player.UserControlPlayer"
x:Name="UserControl"
- Width="450" Height="334" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
+ Width="560" Height="400" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml
--- a/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml Thu Sep 10 16:04:28 2009 +0200
+++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -9,8 +9,12 @@
x:Class="FingersDance.Control.SyncSource.UserControlSyncSource"
x:Name="UserControl" Height="384" Width="512">
-
-
-
+
+
+
+
+
+
+
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml
--- a/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml Thu Sep 10 16:04:28 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -9,8 +9,8 @@
d:DesignWidth="640" d:DesignHeight="480"
xmlns:FingersDance_Control_SyncSource="clr-namespace:FingersDance.Control.SyncSource;assembly=FingersDance.Control.SyncSource">
-
-
+
+
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/App.xaml
--- a/src/FingersDance/App.xaml Thu Sep 10 16:04:28 2009 +0200
+++ b/src/FingersDance/App.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -1,7 +1,7 @@
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/FingersDance.csproj
--- a/src/FingersDance/FingersDance.csproj Thu Sep 10 16:04:28 2009 +0200
+++ b/src/FingersDance/FingersDance.csproj Fri Sep 11 10:58:35 2009 +0200
@@ -105,8 +105,8 @@
True
Settings.settings
-
- SurfaceWindow1.xaml
+
+ MainSurfaceWindow.xaml
@@ -117,16 +117,23 @@
PreserveNewest
+
-
+
MSBuild:Compile
Designer
+
+
+ {E6A3A067-1CB4-43D2-BB9C-DC72361F7E22}
+ FingersDance.Control.UserPanel
+
+
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/MainSurfaceWindow.xaml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance/MainSurfaceWindow.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -0,0 +1,57 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/MainSurfaceWindow.xaml.cs
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance/MainSurfaceWindow.xaml.cs Fri Sep 11 10:58:35 2009 +0200
@@ -0,0 +1,122 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Shapes;
+using System.Windows.Threading;
+using Microsoft.Surface;
+using Microsoft.Surface.Presentation;
+using Microsoft.Surface.Presentation.Controls;
+
+namespace FingersDance
+{
+ ///
+ /// Interaction logic for SurfaceWindow1.xaml
+ ///
+ public partial class SurfaceWindow1 : SurfaceWindow
+ {
+ ///
+ /// Default constructor.
+ ///
+ public SurfaceWindow1()
+ {
+ InitializeComponent();
+
+ // Add handlers for Application activation events
+ AddActivationHandlers();
+ }
+
+
+ ///
+ /// Occurs when the window is about to close.
+ ///
+ ///
+ protected override void OnClosed(EventArgs e)
+ {
+ base.OnClosed(e);
+
+ // Remove handlers for Application activation events
+ RemoveActivationHandlers();
+ }
+
+ ///
+ /// Adds handlers for Application activation events.
+ ///
+ private void AddActivationHandlers()
+ {
+ // Subscribe to surface application activation events
+ ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
+ }
+
+ ///
+ /// Removes handlers for Application activation events.
+ ///
+ private void RemoveActivationHandlers()
+ {
+ // Unsubscribe from surface application activation events
+ ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
+ }
+
+ ///
+ /// This is called when application has been activated.
+ ///
+ ///
+ ///
+ private void OnApplicationActivated(object sender, EventArgs e)
+ {
+ //TODO: enable audio, animations here
+ }
+
+ ///
+ /// This is called when application is in preview mode.
+ ///
+ ///
+ ///
+ private void OnApplicationPreviewed(object sender, EventArgs e)
+ {
+ //TODO: Disable audio here if it is enabled
+
+ //TODO: optionally enable animations here
+ }
+
+ ///
+ /// This is called when application has been deactivated.
+ ///
+ ///
+ ///
+ private void OnApplicationDeactivated(object sender, EventArgs e)
+ {
+ //TODO: disable audio, animations here
+ }
+
+ private void ScaterView_ContactChanged(object sender, ContactEventArgs e)
+ {
+ try
+ {
+ Grid1.Width = e.GetPosition(mainSurfaceWindow).X;
+ Grid1.Height = e.GetPosition(mainSurfaceWindow).Y;
+
+ Grid2.Width = e.GetPosition(mainSurfaceWindow).X;
+ Grid2.Height = 768 - e.GetPosition(mainSurfaceWindow).Y;
+
+ Grid3.Width = 1024 - e.GetPosition(mainSurfaceWindow).X;
+ Grid3.Height = 768 - e.GetPosition(mainSurfaceWindow).Y;
+
+ Grid4.Width = 1024 - e.GetPosition(mainSurfaceWindow).X;
+ Grid4.Height = e.GetPosition(mainSurfaceWindow).Y;
+ }
+ catch (Exception ex) { }
+ }
+ }
+}
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/Resources/Lake.wmv
Binary file src/FingersDance/Resources/Lake.wmv has changed
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/SurfaceWindow1.xaml
--- a/src/FingersDance/SurfaceWindow1.xaml Thu Sep 10 16:04:28 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff -r 9c6ea1f246da -r f003ae353cd7 src/FingersDance/SurfaceWindow1.xaml.cs
--- a/src/FingersDance/SurfaceWindow1.xaml.cs Thu Sep 10 16:04:28 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,122 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Windows;
-using System.Windows.Controls;
-using System.Windows.Data;
-using System.Windows.Documents;
-using System.Windows.Input;
-using System.Windows.Media;
-using System.Windows.Media.Imaging;
-using System.Windows.Shapes;
-using System.Windows.Threading;
-using Microsoft.Surface;
-using Microsoft.Surface.Presentation;
-using Microsoft.Surface.Presentation.Controls;
-
-namespace FingersDance
-{
- ///
- /// Interaction logic for SurfaceWindow1.xaml
- ///
- public partial class SurfaceWindow1 : SurfaceWindow
- {
- ///
- /// Default constructor.
- ///
- public SurfaceWindow1()
- {
- InitializeComponent();
-
- // Add handlers for Application activation events
- AddActivationHandlers();
- }
-
-
- ///
- /// Occurs when the window is about to close.
- ///
- ///
- protected override void OnClosed(EventArgs e)
- {
- base.OnClosed(e);
-
- // Remove handlers for Application activation events
- RemoveActivationHandlers();
- }
-
- ///
- /// Adds handlers for Application activation events.
- ///
- private void AddActivationHandlers()
- {
- // Subscribe to surface application activation events
- ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
- }
-
- ///
- /// Removes handlers for Application activation events.
- ///
- private void RemoveActivationHandlers()
- {
- // Unsubscribe from surface application activation events
- ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
- }
-
- ///
- /// This is called when application has been activated.
- ///
- ///
- ///
- private void OnApplicationActivated(object sender, EventArgs e)
- {
- //TODO: enable audio, animations here
- }
-
- ///
- /// This is called when application is in preview mode.
- ///
- ///
- ///
- private void OnApplicationPreviewed(object sender, EventArgs e)
- {
- //TODO: Disable audio here if it is enabled
-
- //TODO: optionally enable animations here
- }
-
- ///
- /// This is called when application has been deactivated.
- ///
- ///
- ///
- private void OnApplicationDeactivated(object sender, EventArgs e)
- {
- //TODO: disable audio, animations here
- }
-
- private void ScaterView_ContactChanged(object sender, ContactEventArgs e)
- {
- try
- {
- Grid1.Width = e.GetPosition(mainSurfaceWindow).X;
- Grid1.Height = e.GetPosition(mainSurfaceWindow).Y;
-
- Grid2.Width = e.GetPosition(mainSurfaceWindow).X;
- Grid2.Height = 768 - e.GetPosition(mainSurfaceWindow).Y;
-
- Grid3.Width = 1024 - e.GetPosition(mainSurfaceWindow).X;
- Grid3.Height = 768 - e.GetPosition(mainSurfaceWindow).Y;
-
- Grid4.Width = 1024 - e.GetPosition(mainSurfaceWindow).X;
- Grid4.Height = e.GetPosition(mainSurfaceWindow).Y;
- }
- catch (Exception ex) { }
- }
- }
-}
\ No newline at end of file
diff -r 9c6ea1f246da -r f003ae353cd7 test/Control.UserPanel.Test/Control.UserPanel.Test/SurfaceWindow1.xaml
--- a/test/Control.UserPanel.Test/Control.UserPanel.Test/SurfaceWindow1.xaml Thu Sep 10 16:04:28 2009 +0200
+++ b/test/Control.UserPanel.Test/Control.UserPanel.Test/SurfaceWindow1.xaml Fri Sep 11 10:58:35 2009 +0200
@@ -5,15 +5,18 @@
xmlns:FingersDance_Control_UserPanel="clr-namespace:FingersDance.Control.UserPanel;assembly=FingersDance.Control.UserPanel"
x:Class="Control.UserPanel.Test.SurfaceWindow1"
Title="Control.UserPanel.Test"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+ Height="768" Width="1024"
>
-
-
+
+