src/FingersDance.Views/TimelineView.xaml
author cavaliet
Fri, 02 Oct 2009 18:49:07 +0200
changeset 128 90c29e979ef4
parent 124 14b058fc64fc
child 136 8b513df1b446
permissions -rw-r--r--
Drag and drop of annotations from timeline, first step

<UserControl x:Class="FingersDance.Views.TimelineView"
    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>
        <Custom:SurfaceListBox Background="{x:Null}" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden" BorderThickness="2"
                               ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}"
                               PreviewContactDown="listview_PreviewContactDown">
            
        </Custom:SurfaceListBox>
        <!--ListView DataContext="{Binding Path=AnnotList}"
                  ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden">

            <ListView.ItemTemplate>
                <DataTemplate>
                    <vw:TimelineAnnotationView/>
                </DataTemplate>
            </ListView.ItemTemplate>
            
            <ListView.ItemsPanel>
                <ItemsPanelTemplate>
                    <StackPanel Orientation="Horizontal"/>
                </ItemsPanelTemplate>
            </ListView.ItemsPanel>
        </ListView>
        <TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /-->
    </Grid>
</UserControl>