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