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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     1
<UserControl x:Class="FingersDance.Views.TimelineView"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     2
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
     3
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
70
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
     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
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    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
14b058fc64fc Modify TimelineView's scale on resize event
cavaliet
parents: 115
diff changeset
    26
                  ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
70
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    27
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    28
            <ListView.ItemTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    29
                <DataTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    30
                    <vw:TimelineAnnotationView/>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    31
                </DataTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    32
            </ListView.ItemTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    33
            
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    34
            <ListView.ItemsPanel>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    35
                <ItemsPanelTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    36
                    <StackPanel Orientation="Horizontal"/>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    37
                </ItemsPanelTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    38
            </ListView.ItemsPanel>
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    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
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    41
    </Grid>
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    42
</UserControl>