src/FingersDance.GestureControl/Themes/Generic.xaml
changeset 198 37c16056c45b
parent 193 96374d03e714
equal deleted inserted replaced
197:3455e574e096 198:37c16056c45b
     9     <Style TargetType="{x:Type local:GestureControl}">
     9     <Style TargetType="{x:Type local:GestureControl}">
    10         <Setter Property="Template">
    10         <Setter Property="Template">
    11             <Setter.Value>
    11             <Setter.Value>
    12                 <ControlTemplate TargetType="{x:Type local:GestureControl}">
    12                 <ControlTemplate TargetType="{x:Type local:GestureControl}">
    13                     <Border Background="Transparent"
    13                     <Border Background="Transparent"
    14                             BorderBrush="{TemplateBinding BorderBrush}"
    14                             BorderBrush="{TemplateBinding BorderBrush}">
    15                             Width="{Binding ElementName=CC,Path=ActualWidth}"
    15                             <!-- Width="{Binding ElementName=CC,Path=ActualWidth}"
    16                             Height="{Binding ElementName=CC,Path=ActualHeight}">
    16                             Height="{Binding ElementName=CC,Path=ActualHeight}"-->  
    17                             <!-- BorderThickness="{TemplateBinding BorderThickness}">  -->
    17                             <!-- BorderThickness="{TemplateBinding BorderThickness}">  -->
    18                         <Grid>
    18                         <Grid>
    19                             <ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"></ContentControl>
    19                             <ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"  ></ContentControl>
    20                            <s:SurfaceInkCanvas Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}" x:Name="InkArea">
    20                            <s:SurfaceInkCanvas  x:Name="InkArea">
       
    21                                <!--Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}"-->
    21                                 <s:SurfaceInkCanvas.DefaultDrawingAttributes>
    22                                 <s:SurfaceInkCanvas.DefaultDrawingAttributes>
    22                                     <DrawingAttributes
    23                                     <DrawingAttributes
    23                                     Color = "Blue" Width = "4" />
    24                                     Color = "Blue" Width = "4" />
    24                                 </s:SurfaceInkCanvas.DefaultDrawingAttributes>
    25                                 </s:SurfaceInkCanvas.DefaultDrawingAttributes>
    25                             </s:SurfaceInkCanvas>
    26                             </s:SurfaceInkCanvas>