author | cavaliet |
Thu, 17 Sep 2009 13:06:22 +0200 | |
changeset 74 | 7ce946833eae |
parent 70 | 4a2f4b9e971a |
child 79 | b13d98b59241 |
permissions | -rw-r--r-- |
55 | 1 |
<UserControl x:Class="FingersDance.Views.TimelineView" |
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
70 | 4 |
xmlns:vw="clr-namespace:FingersDance.Views" |
74
7ce946833eae
First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents:
70
diff
changeset
|
5 |
> |
55 | 6 |
<Grid> |
74
7ce946833eae
First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents:
70
diff
changeset
|
7 |
<ListView DataContext="{Binding Path=AnnotList}" |
7ce946833eae
First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents:
70
diff
changeset
|
8 |
ItemsSource="{Binding}" Background="Black" BorderThickness="0" > |
70 | 9 |
|
10 |
<ListView.ItemTemplate> |
|
11 |
<DataTemplate> |
|
12 |
<vw:TimelineAnnotationView/> |
|
13 |
</DataTemplate> |
|
14 |
</ListView.ItemTemplate> |
|
15 |
||
16 |
<ListView.ItemsPanel> |
|
17 |
<ItemsPanelTemplate> |
|
18 |
<StackPanel Orientation="Horizontal"/> |
|
19 |
</ItemsPanelTemplate> |
|
20 |
</ListView.ItemsPanel> |
|
21 |
||
22 |
<!--ListView.View> |
|
55 | 23 |
<GridView> |
24 |
<GridViewColumn |
|
25 |
Header="Gesture Type" |
|
70 | 26 |
DisplayMemberBinding="{Binding Path=GestureType}"/> |
69 | 27 |
<GridViewColumn |
28 |
Header="Tc Begin" |
|
29 |
DisplayMemberBinding="{Binding Path=TcBegin}" /> |
|
30 |
<GridViewColumn |
|
31 |
Header="Dur" |
|
32 |
DisplayMemberBinding="{Binding Path=Dur}" /> |
|
55 | 33 |
</GridView> |
70 | 34 |
</ListView.View--> |
55 | 35 |
</ListView> |
74
7ce946833eae
First step of data binding where we can add an annotation by clicking on the timeline
cavaliet
parents:
70
diff
changeset
|
36 |
<!--TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /--> |
55 | 37 |
</Grid> |
38 |
</UserControl> |