src/FingersDance.Views/TimelineView.xaml
author cavaliet
Mon, 26 Oct 2009 16:03:34 +0100
changeset 175 1d4b6d6474d5
parent 166 33c2e634df13
permissions -rw-r--r--
Visual change for the annotations to be as close as possible to the cursor's timeline.
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"
166
33c2e634df13 update drag and drop for dragged annotation to be well displayed and avoid DnD problems
cavaliet
parents: 146
diff changeset
     5
    xmlns:Custom="http://schemas.microsoft.com/surface/2008"
175
1d4b6d6474d5 Visual change for the annotations to be as close as possible to the cursor's timeline.
cavaliet
parents: 166
diff changeset
     6
    Width="1700" Height="40">
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
     7
    <UserControl.Resources>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
     8
        <DataTemplate x:Key="slbDataTemplate">
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
     9
            <vw:TimelineAnnotationView/>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    10
        </DataTemplate>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    11
        <ItemsPanelTemplate x:Key="slbItemsPanelTemplate">
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    12
            <!--
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    13
            <Grid></Grid>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    14
            <Canvas></Canvas>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    15
            -->
175
1d4b6d6474d5 Visual change for the annotations to be as close as possible to the cursor's timeline.
cavaliet
parents: 166
diff changeset
    16
            <StackPanel Orientation="Horizontal" VerticalAlignment="Top" Margin="0,-5,0,0" />
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    17
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    18
        </ItemsPanelTemplate>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    19
    </UserControl.Resources>
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    20
    <Grid>
175
1d4b6d6474d5 Visual change for the annotations to be as close as possible to the cursor's timeline.
cavaliet
parents: 166
diff changeset
    21
        <Custom:SurfaceListBox Height="40" Background="{x:Null}" x:Name="listview" x:FieldModifier="public" ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    22
                               ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}"
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    23
                               >
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    24
            
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    25
        </Custom:SurfaceListBox>
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    26
        <!--ListView DataContext="{Binding Path=AnnotList}"
124
14b058fc64fc Modify TimelineView's scale on resize event
cavaliet
parents: 115
diff changeset
    27
                  ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
70
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    28
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    29
            <ListView.ItemTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    30
                <DataTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    31
                    <vw:TimelineAnnotationView/>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    32
                </DataTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    33
            </ListView.ItemTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    34
            
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    35
            <ListView.ItemsPanel>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    36
                <ItemsPanelTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    37
                    <StackPanel Orientation="Horizontal"/>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    38
                </ItemsPanelTemplate>
4a2f4b9e971a annotation placed in horizontal
cavaliet
parents: 69
diff changeset
    39
            </ListView.ItemsPanel>
55
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    40
        </ListView>
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 124
diff changeset
    41
        <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
    42
    </Grid>
1ec0ef228158 data, viewmodel and view added
cavaliet
parents:
diff changeset
    43
</UserControl>