author | cavaliet |
Fri, 02 Oct 2009 18:49:07 +0200 | |
changeset 128 | 90c29e979ef4 |
parent 124 | 14b058fc64fc |
child 136 | 8b513df1b446 |
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" |
128
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
5 |
xmlns:Custom="http://schemas.microsoft.com/surface/2008"> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
6 |
<UserControl.Resources> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
7 |
<DataTemplate x:Key="slbDataTemplate"> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
8 |
<vw:TimelineAnnotationView/> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
9 |
</DataTemplate> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
10 |
<ItemsPanelTemplate x:Key="slbItemsPanelTemplate"> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
11 |
<!-- |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
12 |
<Grid></Grid> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
13 |
<Canvas></Canvas> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
14 |
--> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
15 |
<StackPanel Orientation="Horizontal"/> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
16 |
|
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
17 |
</ItemsPanelTemplate> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
18 |
</UserControl.Resources> |
55 | 19 |
<Grid> |
128
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
20 |
<Custom:SurfaceListBox Background="{x:Null}" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="2" |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
21 |
ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}" |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
22 |
PreviewContactDown="listview_PreviewContactDown"> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
23 |
|
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
24 |
</Custom:SurfaceListBox> |
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
25 |
<!--ListView DataContext="{Binding Path=AnnotList}" |
124 | 26 |
ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden"> |
70 | 27 |
|
28 |
<ListView.ItemTemplate> |
|
29 |
<DataTemplate> |
|
30 |
<vw:TimelineAnnotationView/> |
|
31 |
</DataTemplate> |
|
32 |
</ListView.ItemTemplate> |
|
33 |
||
34 |
<ListView.ItemsPanel> |
|
35 |
<ItemsPanelTemplate> |
|
36 |
<StackPanel Orientation="Horizontal"/> |
|
37 |
</ItemsPanelTemplate> |
|
38 |
</ListView.ItemsPanel> |
|
55 | 39 |
</ListView> |
128
90c29e979ef4
Drag and drop of annotations from timeline, first step
cavaliet
parents:
124
diff
changeset
|
40 |
<TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /--> |
55 | 41 |
</Grid> |
42 |
</UserControl> |