1 <UserControl x:Class="FingersDance.Views.TimelineView" |
1 <UserControl x:Class="FingersDance.Views.TimelineView" |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 xmlns:vw="clr-namespace:FingersDance.Views" |
4 xmlns:vw="clr-namespace:FingersDance.Views" |
5 > |
5 xmlns:Custom="http://schemas.microsoft.com/surface/2008"> |
|
6 <UserControl.Resources> |
|
7 <DataTemplate x:Key="slbDataTemplate"> |
|
8 <vw:TimelineAnnotationView/> |
|
9 </DataTemplate> |
|
10 <ItemsPanelTemplate x:Key="slbItemsPanelTemplate"> |
|
11 <!-- |
|
12 <Grid></Grid> |
|
13 <Canvas></Canvas> |
|
14 --> |
|
15 <StackPanel Orientation="Horizontal"/> |
|
16 |
|
17 </ItemsPanelTemplate> |
|
18 </UserControl.Resources> |
6 <Grid> |
19 <Grid> |
7 <ListView DataContext="{Binding Path=AnnotList}" |
20 <Custom:SurfaceListBox Background="{x:Null}" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="2" |
|
21 ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}" |
|
22 PreviewContactDown="listview_PreviewContactDown"> |
|
23 |
|
24 </Custom:SurfaceListBox> |
|
25 <!--ListView DataContext="{Binding Path=AnnotList}" |
8 ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden"> |
26 ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden"> |
9 |
27 |
10 <ListView.ItemTemplate> |
28 <ListView.ItemTemplate> |
11 <DataTemplate> |
29 <DataTemplate> |
12 <vw:TimelineAnnotationView/> |
30 <vw:TimelineAnnotationView/> |
16 <ListView.ItemsPanel> |
34 <ListView.ItemsPanel> |
17 <ItemsPanelTemplate> |
35 <ItemsPanelTemplate> |
18 <StackPanel Orientation="Horizontal"/> |
36 <StackPanel Orientation="Horizontal"/> |
19 </ItemsPanelTemplate> |
37 </ItemsPanelTemplate> |
20 </ListView.ItemsPanel> |
38 </ListView.ItemsPanel> |
21 |
|
22 <!--ListView.View> |
|
23 <GridView> |
|
24 <GridViewColumn |
|
25 Header="Gesture Type" |
|
26 DisplayMemberBinding="{Binding Path=GestureType}"/> |
|
27 <GridViewColumn |
|
28 Header="Tc Begin" |
|
29 DisplayMemberBinding="{Binding Path=TcBegin}" /> |
|
30 <GridViewColumn |
|
31 Header="Dur" |
|
32 DisplayMemberBinding="{Binding Path=Dur}" /> |
|
33 </GridView> |
|
34 </ListView.View--> |
|
35 </ListView> |
39 </ListView> |
36 <!--TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /--> |
40 <TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /--> |
37 </Grid> |
41 </Grid> |
38 </UserControl> |
42 </UserControl> |