src/FingersDance.Views/TimelineView.xaml
changeset 143 9f157d9c725b
parent 124 14b058fc64fc
child 146 dd8ed4d3beb6
--- a/src/FingersDance.Views/TimelineView.xaml	Tue Oct 13 19:09:46 2009 +0200
+++ b/src/FingersDance.Views/TimelineView.xaml	Tue Oct 13 19:33:13 2009 +0200
@@ -2,9 +2,27 @@
     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
     xmlns:vw="clr-namespace:FingersDance.Views"
-    >
+    xmlns:Custom="http://schemas.microsoft.com/surface/2008">
+    <UserControl.Resources>
+        <DataTemplate x:Key="slbDataTemplate">
+            <vw:TimelineAnnotationView/>
+        </DataTemplate>
+        <ItemsPanelTemplate x:Key="slbItemsPanelTemplate">
+            <!--
+            <Grid></Grid>
+            <Canvas></Canvas>
+            -->
+            <StackPanel Orientation="Horizontal"/>
+
+        </ItemsPanelTemplate>
+    </UserControl.Resources>
     <Grid>
-        <ListView DataContext="{Binding Path=AnnotList}"
+        <Custom:SurfaceListBox Background="{x:Null}" x:Name="listview" x:FieldModifier="public" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="2"
+                               ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}"
+                               >
+            
+        </Custom:SurfaceListBox>
+        <!--ListView DataContext="{Binding Path=AnnotList}"
                   ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
 
             <ListView.ItemTemplate>
@@ -18,21 +36,7 @@
                     <StackPanel Orientation="Horizontal"/>
                 </ItemsPanelTemplate>
             </ListView.ItemsPanel>
-            
-            <!--ListView.View>
-                <GridView>
-                    <GridViewColumn 
-                        Header="Gesture Type"
-                        DisplayMemberBinding="{Binding Path=GestureType}"/>
-                    <GridViewColumn 
-                        Header="Tc Begin"
-                        DisplayMemberBinding="{Binding Path=TcBegin}" />
-                    <GridViewColumn 
-                        Header="Dur"
-                        DisplayMemberBinding="{Binding Path=Dur}" />
-                </GridView>
-            </ListView.View-->
         </ListView>
-        <!--TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /-->
+        <TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /-->
     </Grid>
 </UserControl>