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"
|
143
|
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>
|
55
|
19 |
<Grid>
|
143
|
20 |
<Custom:SurfaceListBox Background="{x:Null}" x:Name="listview" x:FieldModifier="public" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="2"
|
|
21 |
ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}"
|
|
22 |
>
|
|
23 |
|
|
24 |
</Custom:SurfaceListBox>
|
|
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>
|
143
|
40 |
<TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /-->
|
55
|
41 |
</Grid>
|
|
42 |
</UserControl>
|