# HG changeset patch # User sarias # Date 1255286096 -7200 # Node ID 61ba19954ed46db3d64fcabc83e573fc74300459 # Parent 8b513df1b4466cba324d1fb34934304b940217ea To rotate the layout based on the suggested orientation + DEBUG actionGeneration ActionStartOrEndAnnotation diff -r 8b513df1b446 -r 61ba19954ed4 src/FingersDance.ActionFactory/ActionGenerator.cs --- a/src/FingersDance.ActionFactory/ActionGenerator.cs Fri Oct 09 11:33:35 2009 +0200 +++ b/src/FingersDance.ActionFactory/ActionGenerator.cs Sun Oct 11 20:34:56 2009 +0200 @@ -17,7 +17,7 @@ actionDict.Add("ActionOpenMedia", typeof(FingersDance.Actions.ActionOpenMedia)); actionDict.Add("ActionStopMedia", typeof(FingersDance.Actions.ActionStopMedia)); - actionDict.Add("ActionStartOrEndAnnotation", typeof(FingersDance.Actions.ActionStartOrEndAnnotation)); + //actionDict.Add("ActionStartOrEndAnnotation", typeof(FingersDance.Actions.ActionStartOrEndAnnotation)); actionDict.Add("ActionAddAnnotation", typeof(FingersDance.Actions.ActionAddAnnotation)); } diff -r 8b513df1b446 -r 61ba19954ed4 src/FingersDance.Actions/FingersDance.Actions.csproj --- a/src/FingersDance.Actions/FingersDance.Actions.csproj Fri Oct 09 11:33:35 2009 +0200 +++ b/src/FingersDance.Actions/FingersDance.Actions.csproj Sun Oct 11 20:34:56 2009 +0200 @@ -82,7 +82,6 @@ - diff -r 8b513df1b446 -r 61ba19954ed4 src/FingersDance/FingersDance.csproj --- a/src/FingersDance/FingersDance.csproj Fri Oct 09 11:33:35 2009 +0200 +++ b/src/FingersDance/FingersDance.csproj Sun Oct 11 20:34:56 2009 +0200 @@ -183,6 +183,10 @@ {E6A3A067-1CB4-43D2-BB9C-DC72361F7E22} FingersDance.Control.UserPanel + + {E81BB080-0598-43AC-90CE-54D6570C4E9E} + FingersDance.ViewModels + diff -r 8b513df1b446 -r 61ba19954ed4 src/FingersDance/MainSurfaceWindow.xaml --- a/src/FingersDance/MainSurfaceWindow.xaml Fri Oct 09 11:33:35 2009 +0200 +++ b/src/FingersDance/MainSurfaceWindow.xaml Sun Oct 11 20:34:56 2009 +0200 @@ -126,7 +126,7 @@ - + diff -r 8b513df1b446 -r 61ba19954ed4 src/FingersDance/MainSurfaceWindow.xaml.cs --- a/src/FingersDance/MainSurfaceWindow.xaml.cs Fri Oct 09 11:33:35 2009 +0200 +++ b/src/FingersDance/MainSurfaceWindow.xaml.cs Sun Oct 11 20:34:56 2009 +0200 @@ -85,6 +85,26 @@ /// + /// CopyTo rotate the layout based on the suggested orientation + /// + /// + private void MainGrid_Loaded(object sender, RoutedEventArgs e) + { + if (ApplicationLauncher.InitialOrientation == UserOrientation.Top) + { + // Rotate the main canvas by 180 degrees. + this.MainGrid.LayoutTransform = new RotateTransform(180.0); + } + else + { + // Remove the rotate transform on the main canvas. + this.MainGrid.LayoutTransform = null; + } + // Dismiss the loading screen. + ApplicationLauncher.SignalApplicationLoadComplete(); + } + + /// /// Occurs when the window is about to close. /// ///