src/FingersDance/MainSurfaceWindow.xaml
changeset 143 9f157d9c725b
parent 112 08bc8eac9e71
child 146 dd8ed4d3beb6
equal deleted inserted replaced
142:3d66ca73df55 143:9f157d9c725b
    14     
    14     
    15     
    15     
    16     x:Class="FingersDance.SurfaceWindow1"
    16     x:Class="FingersDance.SurfaceWindow1"
    17     Title="FingersDance"
    17     Title="FingersDance"
    18     Width="1024" Height="768" x:Name="mainSurfaceWindow" 
    18     Width="1024" Height="768" x:Name="mainSurfaceWindow" 
    19     Background="{x:Null}"
    19     Background="{x:Null}" Loaded="mainSurfaceWindow_Loaded"
    20     
    20     
    21     
    21     
    22     >
    22     >
    23   <s:SurfaceWindow.Resources>
    23   <s:SurfaceWindow.Resources>
    24     <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
    24     <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
   123   				</ControlTemplate>
   123   				</ControlTemplate>
   124   			</Setter.Value>
   124   			</Setter.Value>
   125   		</Setter>
   125   		</Setter>
   126   	</Style>
   126   	</Style>
   127   </s:SurfaceWindow.Resources>
   127   </s:SurfaceWindow.Resources>
       
   128 	<s:SurfaceWindow.Triggers>
       
   129 		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
       
   130 	</s:SurfaceWindow.Triggers>
   128 
   131 
   129   <Grid x:Name="MainGrid" Width="1024" Height="768" >
   132   <Grid x:Name="MainGrid" Width="1024" Height="768" >
   130   	<Grid.Background>
   133   	<Grid.Background>
   131   		<LinearGradientBrush EndPoint="0.505,0.985" StartPoint="0.505,-0.015">
   134   		<LinearGradientBrush EndPoint="0.505,0.985" StartPoint="0.505,-0.015">
   132   			<GradientStop Color="#FF000000" Offset="0"/>
   135   			<GradientStop Color="#FF000000" Offset="0"/>
   143   				<RotateTransform Angle="0"/>
   146   				<RotateTransform Angle="0"/>
   144   				<TranslateTransform X="0" Y="0"/>
   147   				<TranslateTransform X="0" Y="0"/>
   145   			</TransformGroup>
   148   			</TransformGroup>
   146   		</Grid.RenderTransform>
   149   		</Grid.RenderTransform>
   147   		
   150   		
   148   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect1"/>
   151   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect1" StrokeThickness="0.1"/>
   149   	</Grid>
   152   	</Grid>
   150   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid2" VerticalAlignment="Top" Width="100" Height="100" Background="{x:Null}" RenderTransformOrigin="0.5,0.5">
   153   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid2" VerticalAlignment="Top" Width="100" Height="100" Background="{x:Null}" RenderTransformOrigin="0.5,0.5">
   151   		<Grid.RenderTransform>
   154   		<Grid.RenderTransform>
   152   			<TransformGroup>
   155   			<TransformGroup>
   153   				<ScaleTransform ScaleX="-1" ScaleY="-1"/>
   156   				<ScaleTransform ScaleX="-1" ScaleY="-1"/>
   155   				<RotateTransform Angle="0"/>
   158   				<RotateTransform Angle="0"/>
   156   				<TranslateTransform X="0" Y="0"/>
   159   				<TranslateTransform X="0" Y="0"/>
   157   			</TransformGroup>
   160   			</TransformGroup>
   158   		</Grid.RenderTransform>
   161   		</Grid.RenderTransform>
   159   		
   162   		
   160   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect2"/>
   163   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect2" StrokeThickness="0.1"/>
   161   	</Grid>
   164   	</Grid>
   162   	<Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="Grid3" VerticalAlignment="Bottom" Width="100" Height="100" Background="{x:Null}">
   165   	<Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="Grid3" VerticalAlignment="Bottom" Width="100" Height="100" Background="{x:Null}">
   163   		<Grid.RenderTransform>
   166   		<Grid.RenderTransform>
   164   			<TransformGroup>
   167   			<TransformGroup>
   165   				<ScaleTransform ScaleX="1" ScaleY="1"/>
   168   				<ScaleTransform ScaleX="1" ScaleY="1"/>
   166   				<SkewTransform AngleX="0" AngleY="0"/>
   169   				<SkewTransform AngleX="0" AngleY="0"/>
   167   				<RotateTransform Angle="0"/>
   170   				<RotateTransform Angle="0"/>
   168   				<TranslateTransform X="0" Y="0"/>
   171   				<TranslateTransform X="0" Y="0"/>
   169   			</TransformGroup>
   172   			</TransformGroup>
   170   		</Grid.RenderTransform>
   173   		</Grid.RenderTransform>
   171   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect3"/>
   174   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect3" StrokeThickness="0.1"/>
   172   		
   175   		
   173   	</Grid>
   176   	</Grid>
   174   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid4" VerticalAlignment="Bottom" Width="100" Height="100" Background="{x:Null}">
   177   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid4" VerticalAlignment="Bottom" Width="100" Height="100" Background="{x:Null}">
   175   		
   178   		
   176   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect4"/>
   179   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF" x:Name="rect4" StrokeThickness="0.1"/>
   177   	</Grid>
   180   	</Grid>
   178   	<s:ScatterView x:Name="scaterview"  ContactChanged="scaterview_ContactChanged">
   181   	<s:ScatterView x:Name="scaterview"  ContactChanged="scaterview_ContactChanged">
   179   		<s:ScatterViewItem   Center="512,384" CanMove="True" CanRotate="False" CanScale="False" Background="{x:Null}" x:Name="ScatterViewItemPivot" ContactChanged="ScatterViewItemPivot_ContactChanged" Style="{DynamicResource FingersDance.Control.ScatterView}" BorderBrush="{x:Null}" Foreground="{x:Null}" >
   182   		<s:ScatterViewItem   Center="512,384" CanMove="True" CanRotate="False" CanScale="False" Background="{x:Null}" x:Name="ScatterViewItemPivot" ContactChanged="ScatterViewItemPivot_ContactChanged" Style="{DynamicResource FingersDance.Control.ScatterView}" BorderBrush="{x:Null}" Foreground="{x:Null}" >
   180   			<FingersDance_Control_Pivot:UserControlPivot x:Name="UserControlPivot" EH_SurfaceButtonPlayer_ContactDown="UserControlPivot_EH_SurfaceButtonPlayer_ContactDown"/>
   183   			<FingersDance_Control_Pivot:UserControlPivot x:Name="UserControlPivot" EH_SurfaceButtonPlayer_ContactDown="UserControlPivot_EH_SurfaceButtonPlayer_ContactDown"/>
   181   		</s:ScatterViewItem>
   184   		</s:ScatterViewItem>