author | ARIAS Santiago |
Mon, 26 Oct 2009 08:36:15 +0100 | |
changeset 173 | e99fe78cd168 |
permissions | -rw-r--r-- |
173
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
1 |
<ResourceDictionary |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
4 |
xmlns:s="http://schemas.microsoft.com/surface/2008" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
5 |
xmlns:local="clr-namespace:GestureControl"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
6 |
|
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
7 |
<local:DoubleHalfConverter x:Key="DoubleHalfConverter" /> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
8 |
|
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
9 |
<Style TargetType="{x:Type local:GestureControl}"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
10 |
<Setter Property="Template"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
11 |
<Setter.Value> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
12 |
<ControlTemplate TargetType="{x:Type local:GestureControl}"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
13 |
<Border Background="Transparent" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
14 |
BorderBrush="{TemplateBinding BorderBrush}" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
15 |
Width="{Binding ElementName=CC,Path=ActualWidth}" |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
16 |
Height="{Binding ElementName=CC,Path=ActualHeight}"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
17 |
<!-- BorderThickness="{TemplateBinding BorderThickness}"> --> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
18 |
<Grid> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
19 |
<ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"></ContentControl> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
20 |
<s:SurfaceInkCanvas Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}" x:Name="InkArea"> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
21 |
<s:SurfaceInkCanvas.DefaultDrawingAttributes > |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
22 |
<DrawingAttributes |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
23 |
Color = "Blue" Width = "4" /> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
24 |
</s:SurfaceInkCanvas.DefaultDrawingAttributes> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
25 |
</s:SurfaceInkCanvas> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
26 |
<!-- <s:SurfaceTextBox Width="100" Height="50" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Gesture}" /> --> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
27 |
</Grid> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
28 |
</Border> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
29 |
</ControlTemplate> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
30 |
</Setter.Value> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
31 |
</Setter> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
32 |
</Style> |
e99fe78cd168
Gesture Control Integration in the Control Player
ARIAS Santiago
parents:
diff
changeset
|
33 |
</ResourceDictionary> |