src/FingersDance/SurfaceWindow1.xaml
changeset 45 f003ae353cd7
parent 44 9c6ea1f246da
child 46 f1a26ca4177e
equal deleted inserted replaced
44:9c6ea1f246da 45:f003ae353cd7
     1 <s:SurfaceWindow
       
     2     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
       
     3     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
       
     4     xmlns:s="http://schemas.microsoft.com/surface/2008"
       
     5     x:Class="FingersDance.SurfaceWindow1"
       
     6     Title="FingersDance"
       
     7     Width="1024" Height="768" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" x:Name="mainSurfaceWindow"
       
     8     >
       
     9   <s:SurfaceWindow.Resources>
       
    10     <ImageBrush x:Key="WindowBackground" Stretch="None" Opacity="0.6" ImageSource="pack://application:,,,/Resources/WindowBackground.jpg"/>
       
    11   </s:SurfaceWindow.Resources>
       
    12 
       
    13   <Grid Background="{StaticResource WindowBackground}" x:Name="MainGrid" Width="1024" Height="768" >
       
    14 
       
    15   	<Grid HorizontalAlignment="Left" x:Name="Grid1" VerticalAlignment="Top" Width="100" Height="100" Background="#7EFAFAFA">
       
    16   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF"/>
       
    17   	</Grid>
       
    18   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid4" VerticalAlignment="Top" Width="100" Height="100" Background="#7FFFFFFF">
       
    19   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF"/>
       
    20   	</Grid>
       
    21   	<Grid HorizontalAlignment="Right" Margin="0,0,0,0" x:Name="Grid3" VerticalAlignment="Bottom" Width="100" Height="100" Background="#7FFFFFFF">
       
    22   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF"/>
       
    23   	</Grid>
       
    24   	<Grid RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Left" Margin="0,0,0,0" x:Name="Grid2" VerticalAlignment="Bottom" Width="100" Height="100" Background="#7EFFFFFF">
       
    25   		<Grid.RenderTransform>
       
    26   			<TransformGroup>
       
    27   				<ScaleTransform ScaleX="-1" ScaleY="1"/>
       
    28   				<SkewTransform AngleX="0" AngleY="0"/>
       
    29   				<RotateTransform Angle="0"/>
       
    30   				<TranslateTransform X="0" Y="0"/>
       
    31   			</TransformGroup>
       
    32   		</Grid.RenderTransform>
       
    33   		<Rectangle Fill="{x:Null}" Stroke="#FFFFFFFF"/>
       
    34   	</Grid>
       
    35   	<s:ScatterView x:Name="ScaterView"  ContactChanged="ScaterView_ContactChanged">
       
    36             <s:ScatterViewItem CanMove="True" CanRotate="False" CanScale="False" >
       
    37                 <Ellipse Width="55" Height="55" Fill="#FF101010" Stroke="#FF000000" x:Name="pivot" RenderTransformOrigin="0.5,0.5">
       
    38   			        <Ellipse.RenderTransform>
       
    39   				        <TransformGroup>
       
    40   					        <ScaleTransform ScaleX="1" ScaleY="1"/>
       
    41   					        <SkewTransform AngleX="0" AngleY="0"/>
       
    42   					        <RotateTransform Angle="0"/>
       
    43   					        <TranslateTransform X="0" Y="0"/>
       
    44   				        </TransformGroup>
       
    45   			        </Ellipse.RenderTransform>
       
    46   		        </Ellipse>
       
    47                 </s:ScatterViewItem>
       
    48   	</s:ScatterView>
       
    49 
       
    50   </Grid>
       
    51 </s:SurfaceWindow>