--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.ActionFactory/ActionFactory.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,18 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using FingersDance.Control.Player;
+
+namespace FingersDance.ActionFactory
+{
+ public class ActionFactory
+ {
+ private Dictionary<String, Type> actionDict = new Dictionary<string, Type>();
+
+ public ActionFactory()
+ {
+ //this.actionDict.Add("toto", );
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.ActionFactory/FingersDance.ActionFactory.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>9.0.21022</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>FingersDance.ActionFactory</RootNamespace>
+ <AssemblyName>FingersDance.ActionFactory</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="ActionFactory.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\FingersDance.Actions\FingersDance.Actions.csproj">
+ <Project>{1E80D5A1-C45C-443B-8992-4A4D78D280FC}</Project>
+ <Name>FingersDance.Actions</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\FingersDance.Control.Player\FingersDance.Control.Player.csproj">
+ <Project>{D5625AA4-362F-4E46-9916-65F3B173ECBE}</Project>
+ <Name>FingersDance.Control.Player</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.ActionFactory/Properties/AssemblyInfo.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("FingersDance.ActionFactory")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("FingersDance.ActionFactory")]
+[assembly: AssemblyCopyright("Copyright © 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("17172d3c-8b35-4aa4-b7e7-09ffdb212825")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
--- a/src/FingersDance.Control.Pivot/FingersDance.Control.Pivot.csproj Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.Pivot/FingersDance.Control.Pivot.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -73,6 +73,13 @@
<Reference Include="Microsoft.Surface" />
<Reference Include="Microsoft.Surface.Presentation" />
<Reference Include="Microsoft.Surface.Presentation.Generic" />
+ <Page Include="UserControlPivot.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Compile Include="UserControlPivot.xaml.cs">
+ <DependentUpon>UserControlPivot.xaml</DependentUpon>
+ </Compile>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
@@ -105,9 +112,6 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
- <Compile Include="SurfaceWindow1.xaml.cs">
- <DependentUpon>SurfaceWindow1.xaml</DependentUpon>
- </Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
@@ -122,11 +126,5 @@
<ItemGroup>
<Resource Include="Resources\WindowBackground.jpg" />
</ItemGroup>
- <ItemGroup>
- <Page Include="SurfaceWindow1.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
- </ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
--- a/src/FingersDance.Control.Pivot/SurfaceWindow1.xaml Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<s:SurfaceWindow x:Class="FingersDance.Control.Pivot.SurfaceWindow1"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:s="http://schemas.microsoft.com/surface/2008"
- Title="FingersDance.Control.Pivot"
- >
- <s:SurfaceWindow.Resources>
- <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
- </s:SurfaceWindow.Resources>
-
- <Grid Background="{StaticResource WindowBackground}" >
-
- </Grid>
-</s:SurfaceWindow>
--- a/src/FingersDance.Control.Pivot/SurfaceWindow1.xaml.cs Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +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.Control.Pivot
-{
- /// <summary>
- /// Interaction logic for SurfaceWindow1.xaml
- /// </summary>
- public partial class SurfaceWindow1 : SurfaceWindow
- {
- /// <summary>
- /// Default constructor.
- /// </summary>
- public SurfaceWindow1()
- {
- InitializeComponent();
-
- // Add handlers for Application activation events
- AddActivationHandlers();
- }
-
-
- /// <summary>
- /// Occurs when the window is about to close.
- /// </summary>
- /// <param name="e"></param>
- protected override void OnClosed(EventArgs e)
- {
- base.OnClosed(e);
-
- // Remove handlers for Application activation events
- RemoveActivationHandlers();
- }
-
- /// <summary>
- /// Adds handlers for Application activation events.
- /// </summary>
- private void AddActivationHandlers()
- {
- // Subscribe to surface application activation events
- ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
- }
-
- /// <summary>
- /// Removes handlers for Application activation events.
- /// </summary>
- private void RemoveActivationHandlers()
- {
- // Unsubscribe from surface application activation events
- ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
- }
-
- /// <summary>
- /// This is called when application has been activated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationActivated(object sender, EventArgs e)
- {
- //TODO: enable audio, animations here
- }
-
- /// <summary>
- /// This is called when application is in preview mode.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationPreviewed(object sender, EventArgs e)
- {
- //TODO: Disable audio here if it is enabled
-
- //TODO: optionally enable animations here
- }
-
- /// <summary>
- /// This is called when application has been deactivated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationDeactivated(object sender, EventArgs e)
- {
- //TODO: disable audio, animations here
- }
- }
-}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Pivot/UserControlPivot.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,11 @@
+<UserControl
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+ x:Class="FingersDance.Control.Pivot.UserControlPivot"
+ x:Name="UserControl" Width="52" Height="52">
+
+ <Ellipse Fill="#FF080808" Stroke="#FF000000"/>
+</UserControl>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Pivot/UserControlPivot.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,22 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control.Pivot
+{
+ public partial class UserControlPivot
+ {
+ public UserControlPivot()
+ {
+ this.InitializeComponent();
+
+ // Insert code required on object creation below this point.
+ }
+ }
+}
\ No newline at end of file
--- a/src/FingersDance.Control.Player/App.xaml Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.Player/App.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -1,7 +1,7 @@
<Application x:Class="FingersDance.Control.Player.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- StartupUri="SurfacePlayerTest.xaml"
+ StartupUri="SurfaceWindow1.xaml"
>
<Application.Resources>
<ResourceDictionary>
--- a/src/FingersDance.Control.Player/FingersDance.Control.Player.csproj Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.Player/FingersDance.Control.Player.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -8,7 +8,7 @@
<AssemblyName>FingersDance.Control.Player</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<WarningLevel>4</WarningLevel>
- <OutputType>winexe</OutputType>
+ <OutputType>WinExe</OutputType>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
@@ -23,6 +23,8 @@
<BootstrapperEnabled>true</BootstrapperEnabled>
<PublishUrl>Publish\</PublishUrl>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ <StartupObject>
+ </StartupObject>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@@ -67,9 +69,15 @@
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
- <Reference Include="WindowsBase" />
- <Reference Include="PresentationCore" />
- <Reference Include="PresentationFramework" />
+ <Reference Include="WindowsBase">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationCore">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationFramework">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
<Reference Include="Microsoft.Surface" />
<Reference Include="Microsoft.Surface.Presentation" />
<Reference Include="Microsoft.Surface.Presentation.Generic" />
@@ -77,6 +85,10 @@
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
+ <Page Include="SurfaceWindow1.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
<Page Include="UserControlPlayer.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
@@ -96,6 +108,7 @@
</Compile>
</ItemGroup>
<ItemGroup>
+ <Compile Include="PlayAction.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
@@ -116,8 +129,8 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
- <Compile Include="SurfacePlayerTest.xaml.cs">
- <DependentUpon>SurfacePlayerTest.xaml</DependentUpon>
+ <Compile Include="SurfaceWindow1.xaml.cs">
+ <DependentUpon>SurfaceWindow1.xaml</DependentUpon>
</Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
@@ -132,16 +145,17 @@
<Content Include="Resources\Lake.wmv">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
+ <Resource Include="Resources\SurfaceWindow1Background.jpg" />
<Resource Include="FingersDance.Control.Player.xml" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\WindowBackground.jpg" />
</ItemGroup>
<ItemGroup>
- <Page Include="SurfacePlayerTest.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
+ <ProjectReference Include="..\FingersDance.Actions\FingersDance.Actions.csproj">
+ <Project>{1E80D5A1-C45C-443B-8992-4A4D78D280FC}</Project>
+ <Name>FingersDance.Actions</Name>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Player/PlayAction.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using FingersDance.Actions;
+
+namespace FingersDance.Control.Player
+{
+ public class PlayAction : ActionBase
+ {
+ #region ActionBase Members
+
+ public void Execute()
+ {
+ throw new NotImplementedException();
+ }
+
+ #endregion
+ }
+}
Binary file src/FingersDance.Control.Player/Resources/SurfaceWindow1Background.jpg has changed
--- a/src/FingersDance.Control.Player/SurfacePlayerTest.xaml Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-<s:SurfaceWindow
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:s="http://schemas.microsoft.com/surface/2008"
- x:Class="FingersDance.Control.Player.SurfaceWindow1"
- Title="FingersDance.Control.Player"
- x:Name="SurfacePlayerTest" xmlns:FingersDance_Control_Player="clr-namespace:FingersDance.Control.Player" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
- >
- <s:SurfaceWindow.Resources>
- <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
- </s:SurfaceWindow.Resources>
-
- <Grid Background="{StaticResource WindowBackground}" >
- <FingersDance_Control_Player:UserControlPlayer Margin="342.233,223.999,47.894,25.905" RenderTransformOrigin="0.5,0.5">
- <FingersDance_Control_Player:UserControlPlayer.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0.388"/>
- <TranslateTransform X="0" Y="0"/>
- </TransformGroup>
- </FingersDance_Control_Player:UserControlPlayer.RenderTransform>
- </FingersDance_Control_Player:UserControlPlayer>
- <FingersDance_Control_Player:UserControlPlayer Margin="46.233,10.999,343.894,238.905" RenderTransformOrigin="0.5,0.5">
- <FingersDance_Control_Player:UserControlPlayer.RenderTransform>
- <TransformGroup>
- <ScaleTransform ScaleX="1" ScaleY="1"/>
- <SkewTransform AngleX="0" AngleY="0"/>
- <RotateTransform Angle="0.388"/>
- <TranslateTransform X="0" Y="0"/>
- </TransformGroup>
- </FingersDance_Control_Player:UserControlPlayer.RenderTransform>
- </FingersDance_Control_Player:UserControlPlayer>
-
- </Grid>
-</s:SurfaceWindow>
--- a/src/FingersDance.Control.Player/SurfacePlayerTest.xaml.cs Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +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.Control.Player
-{
- /// <summary>
- /// Interaction logic for SurfaceWindow1.xaml
- /// </summary>
- public partial class SurfaceWindow1 : SurfaceWindow
- {
- /// <summary>
- /// Default constructor.
- /// </summary>
- public SurfaceWindow1()
- {
- InitializeComponent();
-
- // Add handlers for Application activation events
- AddActivationHandlers();
- }
-
-
- /// <summary>
- /// Occurs when the window is about to close.
- /// </summary>
- /// <param name="e"></param>
- protected override void OnClosed(EventArgs e)
- {
- base.OnClosed(e);
-
- // Remove handlers for Application activation events
- RemoveActivationHandlers();
- }
-
- /// <summary>
- /// Adds handlers for Application activation events.
- /// </summary>
- private void AddActivationHandlers()
- {
- // Subscribe to surface application activation events
- ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
- }
-
- /// <summary>
- /// Removes handlers for Application activation events.
- /// </summary>
- private void RemoveActivationHandlers()
- {
- // Unsubscribe from surface application activation events
- ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
- }
-
- /// <summary>
- /// This is called when application has been activated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationActivated(object sender, EventArgs e)
- {
- //TODO: enable audio, animations here
- }
-
- /// <summary>
- /// This is called when application is in preview mode.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationPreviewed(object sender, EventArgs e)
- {
- //TODO: Disable audio here if it is enabled
-
- //TODO: optionally enable animations here
- }
-
- /// <summary>
- /// This is called when application has been deactivated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationDeactivated(object sender, EventArgs e)
- {
- //TODO: disable audio, animations here
- }
- }
-}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Player/SurfaceWindow1.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,21 @@
+<s:SurfaceWindow
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:s="http://schemas.microsoft.com/surface/2008"
+ x:Class="FingersDance.Control.Player.SurfaceWindow1"
+ Title="FingersDance.Control.Player"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
+ >
+ <s:SurfaceWindow.Resources>
+ <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/SurfaceWindow1Background.jpg"/>
+ </s:SurfaceWindow.Resources>
+
+ <Grid Background="{StaticResource WindowBackground}" >
+
+
+
+
+
+
+ </Grid>
+</s:SurfaceWindow>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Player/SurfaceWindow1.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,103 @@
+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.Control.Player
+{
+ /// <summary>
+ /// Interaction logic for SurfaceWindow1.xaml
+ /// </summary>
+ public partial class SurfaceWindow1 : SurfaceWindow
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public SurfaceWindow1()
+ {
+ InitializeComponent();
+
+ // Add handlers for Application activation events
+ AddActivationHandlers();
+ }
+
+
+ /// <summary>
+ /// Occurs when the window is about to close.
+ /// </summary>
+ /// <param name="e"></param>
+ protected override void OnClosed(EventArgs e)
+ {
+ base.OnClosed(e);
+
+ // Remove handlers for Application activation events
+ RemoveActivationHandlers();
+ }
+
+ /// <summary>
+ /// Adds handlers for Application activation events.
+ /// </summary>
+ private void AddActivationHandlers()
+ {
+ // Subscribe to surface application activation events
+ ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
+ }
+
+ /// <summary>
+ /// Removes handlers for Application activation events.
+ /// </summary>
+ private void RemoveActivationHandlers()
+ {
+ // Unsubscribe from surface application activation events
+ ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
+ }
+
+ /// <summary>
+ /// This is called when application has been activated.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationActivated(object sender, EventArgs e)
+ {
+ //TODO: enable audio, animations here
+ }
+
+ /// <summary>
+ /// This is called when application is in preview mode.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationPreviewed(object sender, EventArgs e)
+ {
+ //TODO: Disable audio here if it is enabled
+
+ //TODO: optionally enable animations here
+ }
+
+ /// <summary>
+ /// This is called when application has been deactivated.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationDeactivated(object sender, EventArgs e)
+ {
+ //TODO: disable audio, animations here
+ }
+ }
+}
\ No newline at end of file
--- a/src/FingersDance.Control.Player/UserControlPlayer.xaml Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.Player/UserControlPlayer.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -6,18 +6,18 @@
mc:Ignorable="d"
x:Class="FingersDance.Control.Player.UserControlPlayer"
x:Name="UserControl"
- Width="335.873" Height="228.096" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
+ Width="450" Height="334" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
<UserControl.Resources>
<Storyboard x:Key="OnClick1"/>
</UserControl.Resources>
<UserControl.Triggers>
</UserControl.Triggers>
- <StackPanel x:Name="LayoutRoot" Width="331.873" Height="227.096" Background="{x:Null}">
- <Grid Width="321.873" Height="225.096" MaxWidth="500" Background="#FF000000">
- <MediaElement x:Name="MediaElementVideo" MediaOpened="MediaElementVideo_MediaOpened" />
- <Custom:SurfaceButton x:Name="Rewind_area" Content="Play/Pause" ContactDown="ButtonRewind_ContactDown" Click="ButtonRewind_Click" Foreground="{x:Null}" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Left"/>
- <Custom:SurfaceButton x:Name="Fast_Forward_area" Content="Play/Pause" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" Foreground="{x:Null}" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right"/>
- <Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" Margin="76,0,76,0" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0"/>
- </Grid>
- </StackPanel>
+ <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="{x:Null}">
+ <Grid Width="Auto" MaxWidth="500" Background="#FF000000">
+ <MediaElement x:Name="MediaElementVideo" MediaOpened="MediaElementVideo_MediaOpened" />
+ <Custom:SurfaceButton x:Name="Rewind_area" Content="Play/Pause" ContactDown="ButtonRewind_ContactDown" Click="ButtonRewind_Click" Foreground="{x:Null}" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Left"/>
+ <Custom:SurfaceButton x:Name="Fast_Forward_area" Content="Play/Pause" ContactDown="ButtonFastForward_ContactDown" Click="ButtonFastForward_Click" Foreground="{x:Null}" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0" Width="72" HorizontalAlignment="Right"/>
+ <Custom:SurfaceButton x:Name="Play_Pause_area" ContactDown="ButtonPlayPause_ContactDown" Click="ButtonPlayPause_Click" Foreground="{x:Null}" Margin="76,0,76,0" Background="#FFF7F0F0" BorderBrush="{x:Null}" Opacity="0"/>
+ </Grid>
+ </Grid>
</UserControl>
\ No newline at end of file
--- a/src/FingersDance.Control.Screen/FingersDance.Control.Screen.csproj Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.Screen/FingersDance.Control.Screen.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -73,6 +73,13 @@
<Reference Include="Microsoft.Surface" />
<Reference Include="Microsoft.Surface.Presentation" />
<Reference Include="Microsoft.Surface.Presentation.Generic" />
+ <Page Include="UserControlScreen.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Compile Include="UserControlScreen.xaml.cs">
+ <DependentUpon>UserControlScreen.xaml</DependentUpon>
+ </Compile>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
@@ -105,9 +112,6 @@
<DesignTimeSharedInput>True</DesignTimeSharedInput>
<DependentUpon>Settings.settings</DependentUpon>
</Compile>
- <Compile Include="SurfaceWindow1.xaml.cs">
- <DependentUpon>SurfaceWindow1.xaml</DependentUpon>
- </Compile>
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
@@ -123,10 +127,14 @@
<Resource Include="Resources\WindowBackground.jpg" />
</ItemGroup>
<ItemGroup>
- <Page Include="SurfaceWindow1.xaml">
- <Generator>MSBuild:Compile</Generator>
- <SubType>Designer</SubType>
- </Page>
+ <ProjectReference Include="..\FingersDance.Control.Pivot\FingersDance.Control.Pivot.csproj">
+ <Project>{0EC4C48C-132C-4926-9A09-A4135C58688C}</Project>
+ <Name>FingersDance.Control.Pivot</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\FingersDance.Control.UserPanel\FingersDance.Control.UserPanel.csproj">
+ <Project>{E6A3A067-1CB4-43D2-BB9C-DC72361F7E22}</Project>
+ <Name>FingersDance.Control.UserPanel</Name>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
\ No newline at end of file
--- a/src/FingersDance.Control.Screen/SurfaceWindow1.xaml Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,14 +0,0 @@
-<s:SurfaceWindow x:Class="FingersDance.Control.Screen.SurfaceWindow1"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:s="http://schemas.microsoft.com/surface/2008"
- Title="FingersDance.Control.Screen"
- >
- <s:SurfaceWindow.Resources>
- <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
- </s:SurfaceWindow.Resources>
-
- <Grid Background="{StaticResource WindowBackground}" >
-
- </Grid>
-</s:SurfaceWindow>
--- a/src/FingersDance.Control.Screen/SurfaceWindow1.xaml.cs Sun Aug 09 18:29:41 2009 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,103 +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.Control.Screen
-{
- /// <summary>
- /// Interaction logic for SurfaceWindow1.xaml
- /// </summary>
- public partial class SurfaceWindow1 : SurfaceWindow
- {
- /// <summary>
- /// Default constructor.
- /// </summary>
- public SurfaceWindow1()
- {
- InitializeComponent();
-
- // Add handlers for Application activation events
- AddActivationHandlers();
- }
-
-
- /// <summary>
- /// Occurs when the window is about to close.
- /// </summary>
- /// <param name="e"></param>
- protected override void OnClosed(EventArgs e)
- {
- base.OnClosed(e);
-
- // Remove handlers for Application activation events
- RemoveActivationHandlers();
- }
-
- /// <summary>
- /// Adds handlers for Application activation events.
- /// </summary>
- private void AddActivationHandlers()
- {
- // Subscribe to surface application activation events
- ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
- }
-
- /// <summary>
- /// Removes handlers for Application activation events.
- /// </summary>
- private void RemoveActivationHandlers()
- {
- // Unsubscribe from surface application activation events
- ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
- ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
- ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
- }
-
- /// <summary>
- /// This is called when application has been activated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationActivated(object sender, EventArgs e)
- {
- //TODO: enable audio, animations here
- }
-
- /// <summary>
- /// This is called when application is in preview mode.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationPreviewed(object sender, EventArgs e)
- {
- //TODO: Disable audio here if it is enabled
-
- //TODO: optionally enable animations here
- }
-
- /// <summary>
- /// This is called when application has been deactivated.
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void OnApplicationDeactivated(object sender, EventArgs e)
- {
- //TODO: disable audio, animations here
- }
- }
-}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Screen/UserControlScreen.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,40 @@
+<UserControl
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+ xmlns:FingersDance_Control_Pivot="clr-namespace:FingersDance.Control.Pivot;assembly=FingersDance.Control.Pivot"
+ xmlns:FingersDance_Control_UserPanel="clr-namespace:FingersDance.Control.UserPanel;assembly=FingersDance.Control.UserPanel"
+ x:Class="FingersDance.Control.Screen.UserControlScreen"
+ x:Name="UserControl"
+ d:DesignWidth="640" d:DesignHeight="480" Width="1024" Height="768" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
+
+ <Grid x:Name="LayoutRoot">
+ <Custom:ScatterView HorizontalAlignment="Left" VerticalAlignment="Top" Foreground="{x:Null}" ContactChanged="ScatterViewPivot_ContactChanged" x:Name="ScatterViewPivot">
+ <Custom:ScatterViewItem x:Name="ScatterViewItemPivot" ContactChanged="ScatterViewItemPivot_ContactChanged">
+ <FingersDance_Control_Pivot:UserControlPivot Height="52" x:Name="UserControlPivot" Width="52" Foreground="{x:Null}" />
+ </Custom:ScatterViewItem>
+ </Custom:ScatterView>
+
+ <Grid HorizontalAlignment="Left" x:Name="Grid1" VerticalAlignment="Top" Width="100" Height="100">
+ <Rectangle x:Name="Rectangle1" Fill="{x:Null}" Stroke="#FF000000"/>
+
+ <!--<FingersDance_Control_UserPanel:UserControlUserPanel x:Name="UserPanel1"/>-->
+ </Grid>
+ <Grid HorizontalAlignment="Right" Margin="0,0,8,0" x:Name="Grid2" VerticalAlignment="Top" Width="100" Height="100">
+ <Rectangle x:Name="Rectangle2" Fill="{x:Null}" Stroke="#FF000000"/>
+ <!--<FingersDance_Control_UserPanel:UserControlUserPanel x:Name="UserPanel2"/>-->
+ </Grid>
+ <Grid HorizontalAlignment="Left" x:Name="Grid3" VerticalAlignment="Bottom" Width="100" Height="100">
+ <Rectangle x:Name="Rectangle3" Fill="{x:Null}" Stroke="#FF000000"/>
+ <!--<FingersDance_Control_UserPanel:UserControlUserPanel x:Name="UserPanel3"/>-->
+ </Grid>
+ <Grid HorizontalAlignment="Right" x:Name="Grid4" VerticalAlignment="Bottom" Width="100" Height="100">
+ <Rectangle x:Name="Rectangle4" Fill="{x:Null}" Stroke="#FF000000"/>
+ <!--<FingersDance_Control_UserPanel:UserControlUserPanel x:Name="UserPanel4"/>-->
+ </Grid>
+
+ </Grid>
+
+</UserControl>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.Screen/UserControlScreen.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,68 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control.Screen
+{
+ public partial class UserControlScreen
+ {
+ public UserControlScreen()
+ {
+ this.InitializeComponent();
+
+ // Insert code required on object creation below this point.
+ }
+
+
+ private void ScatterViewPivot_ContactChanged(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
+ {
+ try
+ {
+
+ //myrect.Width = e.GetPosition(my_surfaceWindow).X;
+ //myrect.Height = e.GetPosition(my_surfaceWindow).Y;
+
+ Grid1.Width = e.GetPosition(UserControl).X;
+ Grid1.Height = e.GetPosition(UserControl).Y;
+
+ //Grid2.Width = 1024 - e.GetPosition(UserControl).X;
+ //Grid2.Height = 768 - e.GetPosition(UserControl).Y;
+
+ //Grid3.Width = e.GetPosition(UserControl).X;
+ //Grid3.Height = 768 - e.GetPosition(UserControl).Y;
+
+ //Grid4.Width = 1024 - e.GetPosition(UserControl).X;
+ //Grid4.Height = e.GetPosition(UserControl).Y;
+
+ }
+ catch (Exception ex) { }
+ }
+
+ private void ScatterViewItemPivot_ContactChanged(object sender, Microsoft.Surface.Presentation.ContactEventArgs e)
+ {
+ try
+ {
+
+ Grid1.Width = e.GetPosition(UserControl).X;
+ Grid1.Height = e.GetPosition(UserControl).Y;
+
+ Grid2.Width = 1024- e.GetPosition(UserControl).X;
+ Grid2.Height = e.GetPosition(UserControl).Y;
+
+ Grid3.Width = e.GetPosition(UserControl).X;
+ Grid3.Height = 768 - e.GetPosition(UserControl).Y;
+
+ Grid4.Width = 1024 - e.GetPosition(UserControl).X;
+ Grid4.Height = 768 - e.GetPosition(UserControl).Y;
+
+ }
+ catch (Exception ex) { }
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/App.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,13 @@
+<Application x:Class="FingersDance.Control.SyncSource.App"
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ StartupUri="SurfaceWindow1.xaml"
+ >
+ <Application.Resources>
+ <ResourceDictionary>
+ <ResourceDictionary.MergedDictionaries>
+ <ResourceDictionary Source="/Microsoft.Surface.Presentation.Generic;v1.0.0.0;31bf3856ad364e35;component/themes\generic.xaml"/>
+ </ResourceDictionary.MergedDictionaries>
+ </ResourceDictionary>
+ </Application.Resources>
+</Application>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/App.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Windows;
+
+namespace FingersDance.Control.SyncSource
+{
+ /// <summary>
+ /// Interaction logic for App.xaml
+ /// </summary>
+ public partial class App : Application
+ {
+
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/FingersDance.Control.SyncSource.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,137 @@
+<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{BE5AD2E7-8BC2-414A-AB92-34E4D7357740}</ProjectGuid>
+ <ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <RootNamespace>FingersDance.Control.SyncSource</RootNamespace>
+ <AssemblyName>FingersDance.Control.SyncSource</AssemblyName>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
+ <WarningLevel>4</WarningLevel>
+ <OutputType>winexe</OutputType>
+ <Install>true</Install>
+ <InstallFrom>Web</InstallFrom>
+ <UpdateEnabled>true</UpdateEnabled>
+ <UpdateMode>Foreground</UpdateMode>
+ <UpdateInterval>7</UpdateInterval>
+ <UpdateIntervalUnits>Days</UpdateIntervalUnits>
+ <UpdatePeriodically>false</UpdatePeriodically>
+ <UpdateRequired>false</UpdateRequired>
+ <MapFileExtensions>false</MapFileExtensions>
+ <ApplicationVersion>1.0.0.*</ApplicationVersion>
+ <IsWebBootstrapper>true</IsWebBootstrapper>
+ <BootstrapperEnabled>true</BootstrapperEnabled>
+ <PublishUrl>Publish\</PublishUrl>
+ <RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>.\bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugSymbols>false</DebugSymbols>
+ <Optimize>true</Optimize>
+ <OutputPath>.\bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Xml.Linq">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data.DataSetExtensions">
+ <RequiredTargetFramework>3.5</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ <Reference Include="WindowsBase">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationCore">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="PresentationFramework">
+ <RequiredTargetFramework>3.0</RequiredTargetFramework>
+ </Reference>
+ <Reference Include="Microsoft.Surface" />
+ <Reference Include="Microsoft.Surface.Presentation" />
+ <Reference Include="Microsoft.Surface.Presentation.Generic" />
+ <Page Include="SurfaceWindow1.xaml">
+ <SubType>Designer</SubType>
+ <Generator>MSBuild:Compile</Generator>
+ </Page>
+ <Page Include="UserControlSyncSource.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Compile Include="UserControlSyncSource.xaml.cs">
+ <DependentUpon>UserControlSyncSource.xaml</DependentUpon>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ApplicationDefinition Include="App.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </ApplicationDefinition>
+ <Compile Include="App.xaml.cs">
+ <DependentUpon>App.xaml</DependentUpon>
+ <SubType>Code</SubType>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <SubType>Designer</SubType>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ </EmbeddedResource>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTime>True</DesignTime>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ <DependentUpon>Settings.settings</DependentUpon>
+ </Compile>
+ <Compile Include="SurfaceWindow1.xaml.cs">
+ <DependentUpon>SurfaceWindow1.xaml</DependentUpon>
+ </Compile>
+ <AppDesigner Include="Properties\" />
+ </ItemGroup>
+ <ItemGroup>
+ <Content Include="Resources\icon.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Content Include="Resources\iconPreview.png">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </Content>
+ <Resource Include="Resources\SurfaceWindow1Background.jpg" />
+ <Resource Include="FingersDance.Control.SyncSource.xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Resource Include="Resources\WindowBackground.jpg" />
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\FingersDance.Control.Player\FingersDance.Control.Player.csproj">
+ <Project>{D5625AA4-362F-4E46-9916-65F3B173ECBE}</Project>
+ <Name>FingersDance.Control.Player</Name>
+ </ProjectReference>
+ <ProjectReference Include="..\FingersDance.Control.TimeLine\FingersDance.Control.TimeLine.csproj">
+ <Project>{2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}</Project>
+ <Name>FingersDance.Control.TimeLine</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
+</Project>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/FingersDance.Control.SyncSource.xml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="utf-8" ?>
+
+<!--
+This file contains the information needed to install your application
+with the Surface Shell. Please refer to the documentation for deployment
+instructions.
+-->
+<ss:ApplicationInfo
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:ss="http://schemas.microsoft.com/Surface/2007/ApplicationMetadata">
+ <Application>
+ <Title>FingersDance.Control.SyncSource</Title>
+ <Description>FingersDance.Control.SyncSource</Description>
+ <ExecutableFile>FingersDance.Control.SyncSource.exe</ExecutableFile>
+ <Arguments></Arguments>
+ <IconImageFile>Resources\icon.png</IconImageFile>
+ <Preview>
+ <PreviewImageFile>Resources\iconPreview.png</PreviewImageFile>
+ </Preview>
+ <Tags>
+ <!--
+ If your application uses tagged objects, please uncomment this section to register the tags with the Shell.
+ You can register ByteTag(s), IdentityTag(s) or both by using the appropriate instructions below.
+ -->
+ <!--
+ To register ByteTags:
+ 1. Please uncomment the Byte Tag Element below.
+ 2. Replace "C0" below with the value of your Byte Tag (in hexadecimal format). Repeat this section (this element and its children) for other Byte Tags
+ 3. Please remove the Launch element if you do not want to register the tag with Object Routing.
+ -->
+ <!--
+ <ByteTag Value="C0">
+ <Actions>
+ <Launch />
+ </Actions>
+ </ByteTag>
+ -->
+ <!--
+ To register IdentityTags:
+ 1. Please uncomment the Identity Tag Element below.
+ 2. Replace "0000000000000000" below with the series of your Identity Tag (in hexadecimal format). Repeat this section (this element and its children) for other Identity Tags
+ 3. Please remove the Launch element if you do not want to register the tag with Object Routing.
+ -->
+ <!--
+ <IdentityTag Series="0000000000000000">
+ <Actions>
+ <Launch />
+ </Actions>
+ </IdentityTag>
+ -->
+ </Tags>
+ </Application>
+
+ <!--
+ Uncomment this section and comment out the Application element above
+ if you are creating an Attract Mode Application.
+ -->
+ <!--
+ <AttractApplication>
+ <ExecutableFile>FingersDance.Control.SyncSource.exe</ExecutableFile>
+ <Arguments></Arguments>
+ </AttractApplication>
+ -->
+</ss:ApplicationInfo>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/Properties/AssemblyInfo.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,62 @@
+#region Using directives
+
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Resources;
+using System.Globalization;
+using System.Windows;
+using System.Runtime.InteropServices;
+
+#endregion
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("FingersDance.Control.SyncSource")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("FingersDance.Control.SyncSource")]
+[assembly: AssemblyCopyright("Copyright @ 2009")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+[assembly: ComVisible(false)]
+
+//In order to begin building localizable applications, set
+//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
+//inside a <PropertyGroup>. For example, if you are using US english
+//in your source files, set the <UICulture> to en-US. Then uncomment
+//the NeutralResourceLanguage attribute below. Update the "en-US" in
+//the line below to match the UICulture setting in the project file.
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+// Specifies the location in which theme dictionaries are stored for types in an assembly.
+[assembly: ThemeInfo(
+ // Specifies the location of system theme-specific resource dictionaries for this project.
+ // The default setting in this project is "None" since this default project does not
+ // include these user-defined theme files:
+ // Themes\Aero.NormalColor.xaml
+ // Themes\Classic.xaml
+ // Themes\Luna.Homestead.xaml
+ // Themes\Luna.Metallic.xaml
+ // Themes\Luna.NormalColor.xaml
+ // Themes\Royale.NormalColor.xaml
+ ResourceDictionaryLocation.None,
+
+ // Specifies the location of the system non-theme specific resource dictionary:
+ // Themes\generic.xaml
+ ResourceDictionaryLocation.SourceAssembly)]
+
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Revision and Build Numbers
+// by using the '*' as shown below:
+[assembly: AssemblyVersion("1.0.*")]
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/Properties/Resources.Designer.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,72 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3074
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace FingersDance.Control.SyncSource.Properties
+{
+ using System;
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if (object.ReferenceEquals(resourceMan, null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WPFAppTemplate.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/Properties/Resources.resx Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/Properties/Settings.Designer.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:2.0.50727.3074
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace FingersDance.Control.SyncSource.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/Properties/Settings.settings Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='iso-8859-1'?>
+<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
\ No newline at end of file
Binary file src/FingersDance.Control.SyncSource/Resources/SurfaceWindow1Background.jpg has changed
Binary file src/FingersDance.Control.SyncSource/Resources/WindowBackground.jpg has changed
Binary file src/FingersDance.Control.SyncSource/Resources/icon.png has changed
Binary file src/FingersDance.Control.SyncSource/Resources/iconPreview.png has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/SurfaceWindow1.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,18 @@
+<s:SurfaceWindow
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:s="http://schemas.microsoft.com/surface/2008"
+ x:Class="FingersDance.Control.SyncSource.SurfaceWindow1"
+ Title="FingersDance.Control.SyncSource"
+ xmlns:FingersDance_Control_SyncSource="clr-namespace:FingersDance.Control.SyncSource"
+ >
+ <s:SurfaceWindow.Resources>
+ <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/SurfaceWindow1Background.jpg"/>
+ </s:SurfaceWindow.Resources>
+
+ <Grid Background="{StaticResource WindowBackground}" >
+
+ <FingersDance_Control_SyncSource:UserControlSyncSource HorizontalAlignment="Left" VerticalAlignment="Top"/>
+
+ </Grid>
+</s:SurfaceWindow>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/SurfaceWindow1.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,103 @@
+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.Control.SyncSource
+{
+ /// <summary>
+ /// Interaction logic for SurfaceWindow1.xaml
+ /// </summary>
+ public partial class SurfaceWindow1 : SurfaceWindow
+ {
+ /// <summary>
+ /// Default constructor.
+ /// </summary>
+ public SurfaceWindow1()
+ {
+ InitializeComponent();
+
+ // Add handlers for Application activation events
+ AddActivationHandlers();
+ }
+
+
+ /// <summary>
+ /// Occurs when the window is about to close.
+ /// </summary>
+ /// <param name="e"></param>
+ protected override void OnClosed(EventArgs e)
+ {
+ base.OnClosed(e);
+
+ // Remove handlers for Application activation events
+ RemoveActivationHandlers();
+ }
+
+ /// <summary>
+ /// Adds handlers for Application activation events.
+ /// </summary>
+ private void AddActivationHandlers()
+ {
+ // Subscribe to surface application activation events
+ ApplicationLauncher.ApplicationActivated += OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed += OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated += OnApplicationDeactivated;
+ }
+
+ /// <summary>
+ /// Removes handlers for Application activation events.
+ /// </summary>
+ private void RemoveActivationHandlers()
+ {
+ // Unsubscribe from surface application activation events
+ ApplicationLauncher.ApplicationActivated -= OnApplicationActivated;
+ ApplicationLauncher.ApplicationPreviewed -= OnApplicationPreviewed;
+ ApplicationLauncher.ApplicationDeactivated -= OnApplicationDeactivated;
+ }
+
+ /// <summary>
+ /// This is called when application has been activated.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationActivated(object sender, EventArgs e)
+ {
+ //TODO: enable audio, animations here
+ }
+
+ /// <summary>
+ /// This is called when application is in preview mode.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationPreviewed(object sender, EventArgs e)
+ {
+ //TODO: Disable audio here if it is enabled
+
+ //TODO: optionally enable animations here
+ }
+
+ /// <summary>
+ /// This is called when application has been deactivated.
+ /// </summary>
+ /// <param name="sender"></param>
+ /// <param name="e"></param>
+ private void OnApplicationDeactivated(object sender, EventArgs e)
+ {
+ //TODO: disable audio, animations here
+ }
+ }
+}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,16 @@
+<UserControl
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+ xmlns:FingersDance_Control_Player="clr-namespace:FingersDance.Control.Player;assembly=FingersDance.Control.Player"
+ xmlns:FingersDance_Control_TimeLine="clr-namespace:FingersDance.Control.TimeLine;assembly=FingersDance.Control.TimeLine"
+ x:Class="FingersDance.Control.SyncSource.UserControlSyncSource"
+ x:Name="UserControl" Height="384" Width="512">
+
+ <Grid x:Name="LayoutRoot" Height="192" Width="256">
+ <FingersDance_Control_TimeLine:UserControlTimeLine Margin="-127,-91,-131,0" VerticalAlignment="Top" Height="31" x:Name="UserControlTimeLine" DragStarted="UserControlTimeLine_DragStarted" DragCompleted="UserControlTimeLine_DragCompleted" TimerTick="UserControlTimeLine_TimerTick"/>
+ <FingersDance_Control_Player:UserControlPlayer Margin="-92,-56,-102,-86" PlayerOpened="UserControlPlayer_PlayerOpened" x:Name="UserControlPlayer" d:LayoutOverrides="HorizontalAlignment" />
+ </Grid>
+</UserControl>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.SyncSource/UserControlSyncSource.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,72 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control.SyncSource
+{
+ public partial class UserControlSyncSource
+ {
+ public UserControlSyncSource()
+ {
+ this.InitializeComponent();
+
+ // Insert code required on object creation below this point.
+ }
+
+
+ #region player
+ private void UserControlPlayer_PlayerOpened(object sender, EventArgs e)
+ {
+ //Initialisation du Timer
+ UserControlTimeLine.initTimer();
+ //Initialisation du slider
+ UserControlTimeLine.initslider(UserControlPlayer.TotalMilliseconds);
+ //Demarrage du Timer
+ UserControlTimeLine.timerStart();
+
+ }
+ #endregion
+
+ #region TimeLine
+
+
+ private void UserControlTimeLine_DragStarted(object sender, EventArgs e)
+ {
+ UserControlPlayer.playerPause();
+ }
+
+
+ private void UserControlTimeLine_DragCompleted(object sender, EventArgs e)
+ {
+ }
+ #endregion
+
+
+ #region SynSource pour chaque X milliseconds
+ private void UserControlTimeLine_TimerTick(object sender, EventArgs e)
+ {
+ if (!UserControlTimeLine.IsDragging)
+ {
+ UserControlTimeLine.Slider.Value = UserControlPlayer.Player.Position.TotalMilliseconds;
+ }
+ if (UserControlTimeLine.FinishedDragging)
+ {
+ int SliderValue = (int)UserControlTimeLine.Slider.Value;
+ TimeSpan ts = new TimeSpan(0, 0, 0, 0, SliderValue);
+
+ UserControlPlayer.Player.Position = ts;
+ UserControlPlayer.playerPlay();
+
+ UserControlTimeLine.IsDragging = false;
+ UserControlTimeLine.FinishedDragging = false;
+ }
+ }
+ #endregion
+ }
+}
\ No newline at end of file
--- a/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.TimeLine/UserControlTimeLine.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -6,9 +6,9 @@
mc:Ignorable="d"
x:Class="FingersDance.Control.TimeLine.UserControlTimeLine"
x:Name="UserControl"
- d:DesignWidth="575" xmlns:Custom="http://schemas.microsoft.com/surface/2008" Height="Auto" Background="#FF898686">
+ d:DesignWidth="383" xmlns:Custom="http://schemas.microsoft.com/surface/2008" Height="Auto" Background="#FF898686" d:DesignHeight="33">
- <StackPanel x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="#4CFCFCFC">
- <Custom:SurfaceSlider Height="27" x:Name="slider" Value="0.5" Width="575" Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" />
- </StackPanel>
+ <Grid x:Name="LayoutRoot" Width="Auto" Height="Auto" Background="#4CFCFCFC">
+ <Custom:SurfaceSlider Height="Auto" x:Name="slider" Value="0.5" Width="Auto" Thumb.DragStarted="sliderPosition_DragStarted" Thumb.DragCompleted="sliderPosition_DragCompleted" Margin="0,0,30,0" />
+ </Grid>
</UserControl>
\ No newline at end of file
--- a/src/FingersDance.Control.UserPanel/FingersDance.Control.UserPanel.csproj Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/FingersDance.Control.UserPanel.csproj Mon Aug 17 22:04:09 2009 +0200
@@ -73,6 +73,13 @@
<Reference Include="Microsoft.Surface" />
<Reference Include="Microsoft.Surface.Presentation" />
<Reference Include="Microsoft.Surface.Presentation.Generic" />
+ <Page Include="UserControlUserPanel.xaml">
+ <Generator>MSBuild:Compile</Generator>
+ <SubType>Designer</SubType>
+ </Page>
+ <Compile Include="UserControlUserPanel.xaml.cs">
+ <DependentUpon>UserControlUserPanel.xaml</DependentUpon>
+ </Compile>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
@@ -129,13 +136,9 @@
</Page>
</ItemGroup>
<ItemGroup>
- <ProjectReference Include="..\FingersDance.Control.Player\FingersDance.Control.Player.csproj">
- <Project>{D5625AA4-362F-4E46-9916-65F3B173ECBE}</Project>
- <Name>FingersDance.Control.Player</Name>
- </ProjectReference>
- <ProjectReference Include="..\FingersDance.Control.TimeLine\FingersDance.Control.TimeLine.csproj">
- <Project>{2BCEE1BF-D3AC-478C-A26B-DFDB7420E965}</Project>
- <Name>FingersDance.Control.TimeLine</Name>
+ <ProjectReference Include="..\FingersDance.Control.SyncSource\FingersDance.Control.SyncSource.csproj">
+ <Project>{BE5AD2E7-8BC2-414A-AB92-34E4D7357740}</Project>
+ <Name>FingersDance.Control.SyncSource</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
--- a/src/FingersDance.Control.UserPanel/SurfaceUserPanelTest.xaml Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/SurfaceUserPanelTest.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -2,18 +2,22 @@
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:s="http://schemas.microsoft.com/surface/2008"
- xmlns:FingersDance_Control_Player="clr-namespace:FingersDance.Control.Player;assembly=FingersDance.Control.Player"
- xmlns:FingersDance_Control_TimeLine="clr-namespace:FingersDance.Control.TimeLine;assembly=FingersDance.Control.TimeLine"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+
x:Class="FingersDance.Control.UserPanel.SurfaceWindow1"
Title="FingersDance.Control.UserPanel"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" Activated="SurfaceWindow_Activated"
+ xmlns:FingersDance_Control_UserPanel="clr-namespace:FingersDance.Control.UserPanel"
+ xmlns:FingersDance_Control_SyncSource="clr-namespace:FingersDance.Control.SyncSource;assembly=FingersDance.Control.SyncSource"
+
>
<s:SurfaceWindow.Resources>
<ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
</s:SurfaceWindow.Resources>
<Grid Background="{StaticResource WindowBackground}" >
- <FingersDance_Control_TimeLine:UserControlTimeLine Margin="182,89,206,0" VerticalAlignment="Top" Height="34" x:Name="UserControlTimeLine" DragStarted="UserControlTimeLine_DragStarted" DragCompleted="UserControlTimeLine_DragCompleted" TimerTick="UserControlTimeLine_TimerTick"/>
- <FingersDance_Control_Player:UserControlPlayer d:LayoutOverrides="Margin" Margin="196.064,196.452,220.064,74.452" PlayerOpened="UserControlPlayer_PlayerOpened" x:Name="UserControlPlayer" />
+ <FingersDance_Control_UserPanel:UserControlUserPanel/>
+ <!--<FingersDance_Control_SyncSource:UserControlSyncSource/>-->
</Grid>
</s:SurfaceWindow>
--- a/src/FingersDance.Control.UserPanel/SurfaceUserPanelTest.xaml.cs Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.Control.UserPanel/SurfaceUserPanelTest.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -100,47 +100,48 @@
//TODO: disable audio, animations here
}
- private void UserControlPlayer_PlayerOpened(object sender, EventArgs e)
- {
- //Initialisation du slider
- UserControlTimeLine.initslider(UserControlPlayer.TotalMilliseconds);
- //Demarrage du Timer
- UserControlTimeLine.timerStart();
+ //private void UserControlPlayer_PlayerOpened(object sender, EventArgs e)
+ //{
+ // UserControlTimeLine.initTimer();
+ // //Initialisation du slider
+ // UserControlTimeLine.initslider(UserControlPlayer.TotalMilliseconds);
+ // //Demarrage du Timer
+ // UserControlTimeLine.timerStart();
- }
+ //}
- private void SurfaceWindow_Activated(object sender, EventArgs e)
- {
- //initialisation du Timer
- UserControlTimeLine.initTimer();
- }
+ //private void SurfaceWindow_Activated(object sender, EventArgs e)
+ //{
+ // //initialisation du Timer
+ // //UserControlTimeLine.initTimer();
+ //}
- private void UserControlTimeLine_DragStarted(object sender, EventArgs e)
- {
- UserControlPlayer.playerPause();
- }
+ //private void UserControlTimeLine_DragStarted(object sender, EventArgs e)
+ //{
+ // UserControlPlayer.playerPause();
+ //}
- private void UserControlTimeLine_DragCompleted(object sender, EventArgs e)
- {
- }
+ //private void UserControlTimeLine_DragCompleted(object sender, EventArgs e)
+ //{
+ //}
- private void UserControlTimeLine_TimerTick(object sender, EventArgs e)
- {
- if (!UserControlTimeLine.IsDragging)
- {
- UserControlTimeLine.Slider.Value = UserControlPlayer.Player.Position.TotalMilliseconds;
- }
- if (UserControlTimeLine.FinishedDragging)
- {
- int SliderValue = (int)UserControlTimeLine.Slider.Value;
- TimeSpan ts = new TimeSpan(0, 0, 0, 0, SliderValue);
+ //private void UserControlTimeLine_TimerTick(object sender, EventArgs e)
+ //{
+ // if (!UserControlTimeLine.IsDragging)
+ // {
+ // UserControlTimeLine.Slider.Value = UserControlPlayer.Player.Position.TotalMilliseconds;
+ // }
+ // if (UserControlTimeLine.FinishedDragging)
+ // {
+ // int SliderValue = (int)UserControlTimeLine.Slider.Value;
+ // TimeSpan ts = new TimeSpan(0, 0, 0, 0, SliderValue);
- UserControlPlayer.Player.Position = ts;
- UserControlPlayer.playerPlay();
+ // UserControlPlayer.Player.Position = ts;
+ // UserControlPlayer.playerPlay();
- UserControlTimeLine.IsDragging = false;
- UserControlTimeLine.FinishedDragging = false;
- }
- }
+ // UserControlTimeLine.IsDragging = false;
+ // UserControlTimeLine.FinishedDragging = false;
+ // }
+ //}
}
}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.UserPanel/SyncSource.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,11 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+
+namespace FingersDance.Control.UserPanel
+{
+ class SyncSource
+ {
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,15 @@
+<UserControl
+ xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+ xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+ xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+ mc:Ignorable="d"
+ x:Class="FingersDance.Control.UserPanel.UserControlUserPanel"
+ x:Name="UserControl"
+ d:DesignWidth="640" d:DesignHeight="480"
+ xmlns:FingersDance_Control_SyncSource="clr-namespace:FingersDance.Control.SyncSource;assembly=FingersDance.Control.SyncSource">
+
+ <Grid x:Name="LayoutRoot">
+ <FingersDance_Control_SyncSource:UserControlSyncSource/>
+ </Grid>
+</UserControl>
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/FingersDance.Control.UserPanel/UserControlUserPanel.xaml.cs Mon Aug 17 22:04:09 2009 +0200
@@ -0,0 +1,22 @@
+using System;
+using System.IO;
+using System.Net;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Media;
+using System.Windows.Media.Animation;
+using System.Windows.Navigation;
+
+namespace FingersDance.Control.UserPanel
+{
+ public partial class UserControlUserPanel
+ {
+ public UserControlUserPanel()
+ {
+ this.InitializeComponent();
+
+ // Insert code required on object creation below this point.
+ }
+ }
+}
\ No newline at end of file
--- a/src/FingersDance.sln Sun Aug 09 18:29:41 2009 +0200
+++ b/src/FingersDance.sln Mon Aug 17 22:04:09 2009 +0200
@@ -21,6 +21,10 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.Actions", "FingersDance.Actions\FingersDance.Actions.csproj", "{1E80D5A1-C45C-443B-8992-4A4D78D280FC}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.Control.SyncSource", "FingersDance.Control.SyncSource\FingersDance.Control.SyncSource.csproj", "{BE5AD2E7-8BC2-414A-AB92-34E4D7357740}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FingersDance.ActionFactory", "FingersDance.ActionFactory\FingersDance.ActionFactory.csproj", "{C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -107,6 +111,18 @@
{1E80D5A1-C45C-443B-8992-4A4D78D280FC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1E80D5A1-C45C-443B-8992-4A4D78D280FC}.Release|Any CPU.Build.0 = Release|Any CPU
{1E80D5A1-C45C-443B-8992-4A4D78D280FC}.Release|x86.ActiveCfg = Release|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BE5AD2E7-8BC2-414A-AB92-34E4D7357740}.Release|x86.ActiveCfg = Release|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C7B905EA-0678-4DA0-8EF8-7F9CBD22818E}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE