src/FingersDance.GestureControl/Themes/Generic.xaml
changeset 198 37c16056c45b
parent 193 96374d03e714
--- a/src/FingersDance.GestureControl/Themes/Generic.xaml	Fri Nov 13 20:32:46 2009 +0100
+++ b/src/FingersDance.GestureControl/Themes/Generic.xaml	Fri Nov 13 22:11:50 2009 +0100
@@ -11,13 +11,14 @@
             <Setter.Value>
                 <ControlTemplate TargetType="{x:Type local:GestureControl}">
                     <Border Background="Transparent"
-                            BorderBrush="{TemplateBinding BorderBrush}"
-                            Width="{Binding ElementName=CC,Path=ActualWidth}"
-                            Height="{Binding ElementName=CC,Path=ActualHeight}">
+                            BorderBrush="{TemplateBinding BorderBrush}">
+                            <!-- Width="{Binding ElementName=CC,Path=ActualWidth}"
+                            Height="{Binding ElementName=CC,Path=ActualHeight}"-->  
                             <!-- BorderThickness="{TemplateBinding BorderThickness}">  -->
                         <Grid>
-                            <ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"></ContentControl>
-                           <s:SurfaceInkCanvas Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}" x:Name="InkArea">
+                            <ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"  ></ContentControl>
+                           <s:SurfaceInkCanvas  x:Name="InkArea">
+                               <!--Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}"-->
                                 <s:SurfaceInkCanvas.DefaultDrawingAttributes>
                                     <DrawingAttributes
                                     Color = "Blue" Width = "4" />