174
|
1 |
<ResourceDictionary
|
|
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:local="clr-namespace:GestureControl">
|
|
6 |
|
|
7 |
<local:DoubleHalfConverter x:Key="DoubleHalfConverter" />
|
|
8 |
|
|
9 |
<Style TargetType="{x:Type local:GestureControl}">
|
|
10 |
<Setter Property="Template">
|
|
11 |
<Setter.Value>
|
|
12 |
<ControlTemplate TargetType="{x:Type local:GestureControl}">
|
|
13 |
<Border Background="Transparent"
|
198
|
14 |
BorderBrush="{TemplateBinding BorderBrush}">
|
|
15 |
<!-- Width="{Binding ElementName=CC,Path=ActualWidth}"
|
|
16 |
Height="{Binding ElementName=CC,Path=ActualHeight}"-->
|
174
|
17 |
<!-- BorderThickness="{TemplateBinding BorderThickness}"> -->
|
|
18 |
<Grid>
|
198
|
19 |
<ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}" ></ContentControl>
|
|
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}}"-->
|
193
|
22 |
<s:SurfaceInkCanvas.DefaultDrawingAttributes>
|
|
23 |
<DrawingAttributes
|
174
|
24 |
Color = "Blue" Width = "4" />
|
|
25 |
</s:SurfaceInkCanvas.DefaultDrawingAttributes>
|
|
26 |
</s:SurfaceInkCanvas>
|
|
27 |
<!-- <s:SurfaceTextBox Width="100" Height="50" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Gesture}" /> -->
|
|
28 |
</Grid>
|
|
29 |
</Border>
|
|
30 |
</ControlTemplate>
|
|
31 |
</Setter.Value>
|
|
32 |
</Setter>
|
|
33 |
</Style>
|
|
34 |
</ResourceDictionary>
|