src/FingersDance.Views/TimelineAnnotationView.xaml
author cavaliet
Thu, 17 Sep 2009 13:06:22 +0200
changeset 74 7ce946833eae
parent 71 31900a35e162
child 125 fab494cd9da7
child 143 9f157d9c725b
permissions -rw-r--r--
First step of data binding where we can add an annotation by clicking on the timeline
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     1
<UserControl
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     2
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     3
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     4
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     5
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     6
	xmlns:Custom="http://schemas.microsoft.com/surface/2008"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     7
	mc:Ignorable="d"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     8
	x:Class="FingersDance.Views.TimelineAnnotationView"
71
31900a35e162 We can set a margin to an annotation.
cavaliet
parents: 70
diff changeset
     9
    xmlns:vw="clr-namespace:FingersDance.Views"
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    10
	x:Name="UserControl"
74
7ce946833eae First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents: 71
diff changeset
    11
	d:DesignWidth="640" d:DesignHeight="480" Width="40">
71
31900a35e162 We can set a margin to an annotation.
cavaliet
parents: 70
diff changeset
    12
    <UserControl.Resources>
31900a35e162 We can set a margin to an annotation.
cavaliet
parents: 70
diff changeset
    13
        <vw:ThicknessSingleValueConverter x:Name="myThicknessSingleValueConverter" x:Key="myThicknessSingleValueConverter"></vw:ThicknessSingleValueConverter>
31900a35e162 We can set a margin to an annotation.
cavaliet
parents: 70
diff changeset
    14
    </UserControl.Resources>
31900a35e162 We can set a margin to an annotation.
cavaliet
parents: 70
diff changeset
    15
    <Grid x:Name="LayoutRoot" Margin="{Binding Path=TcBegin, Converter={StaticResource myThicknessSingleValueConverter}}">
74
7ce946833eae First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents: 71
diff changeset
    16
        <Ellipse Fill="Green" Margin="-2,-3,0,0" Height="6" VerticalAlignment="Top" HorizontalAlignment="Left" Width="6" />
7ce946833eae First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents: 71
diff changeset
    17
        <Rectangle Fill="Green" HorizontalAlignment="Left" VerticalAlignment="Top" Width="2" Height="20"/>
7ce946833eae First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents: 71
diff changeset
    18
        <Rectangle Fill="Green" HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding Path=Dur}" Height="2" Margin="0,18,0,0"/>
7ce946833eae First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents: 71
diff changeset
    19
        <TextBox HorizontalAlignment="Left" Text="{Binding Path=GestureType}" Width="40" Margin="0,20,0,0"/>
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    20
    </Grid>
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    21
</UserControl>