src/FingersDance.GestureControl/Themes/Generic.xaml
author cavaliet
Tue, 24 Nov 2009 22:08:57 +0100
changeset 229 05aba5def1fc
parent 198 37c16056c45b
permissions -rw-r--r--
add an attribute Color to a Cutting, save it in ldt xml file and redisplay it in the pivot's button. Make ColorFactory truly static.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
174
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     1
<ResourceDictionary
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     4
    xmlns:s="http://schemas.microsoft.com/surface/2008"
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     5
    xmlns:local="clr-namespace:GestureControl">
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     6
    
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     7
    <local:DoubleHalfConverter x:Key="DoubleHalfConverter" />
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     8
    
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     9
    <Style TargetType="{x:Type local:GestureControl}">
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    10
        <Setter Property="Template">
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    11
            <Setter.Value>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    12
                <ControlTemplate TargetType="{x:Type local:GestureControl}">
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    13
                    <Border Background="Transparent"
198
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    14
                            BorderBrush="{TemplateBinding BorderBrush}">
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    15
                            <!-- Width="{Binding ElementName=CC,Path=ActualWidth}"
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    16
                            Height="{Binding ElementName=CC,Path=ActualHeight}"-->  
174
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    17
                            <!-- BorderThickness="{TemplateBinding BorderThickness}">  -->
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    18
                        <Grid>
198
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    19
                            <ContentControl x:Name="CC" BorderBrush="red" BorderThickness="3" Content="{TemplateBinding Content}"  ></ContentControl>
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    20
                           <s:SurfaceInkCanvas  x:Name="InkArea">
37c16056c45b Resize InkCanevas Gesture Control
ARIAS Santiago
parents: 193
diff changeset
    21
                               <!--Width="{Binding ElementName=CC,Path=ActualWidth,Converter={StaticResource DoubleHalfConverter}}" Height="{Binding ElementName=CC,Path=ActualHeight,Converter={StaticResource DoubleHalfConverter}}"-->
193
96374d03e714 Gesture
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 174
diff changeset
    22
                                <s:SurfaceInkCanvas.DefaultDrawingAttributes>
96374d03e714 Gesture
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 174
diff changeset
    23
                                    <DrawingAttributes
174
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    24
                                    Color = "Blue" Width = "4" />
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    25
                                </s:SurfaceInkCanvas.DefaultDrawingAttributes>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    26
                            </s:SurfaceInkCanvas>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    27
                            <!-- <s:SurfaceTextBox Width="100" Height="50" Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Gesture}" /> -->
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    28
                        </Grid>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    29
                    </Border>  
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    30
                </ControlTemplate>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    31
            </Setter.Value>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    32
        </Setter>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    33
    </Style>
45c9e55fcf23 Gesture Control
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    34
</ResourceDictionary>