author | cavaliet |
Mon, 26 Oct 2009 16:03:34 +0100 | |
changeset 175 | 1d4b6d6474d5 |
parent 166 | 33c2e634df13 |
permissions | -rw-r--r-- |
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" |
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 | 7 |
<UserControl.Resources> |
8 |
<DataTemplate x:Key="slbDataTemplate"> |
|
9 |
<vw:TimelineAnnotationView/> |
|
10 |
</DataTemplate> |
|
11 |
<ItemsPanelTemplate x:Key="slbItemsPanelTemplate"> |
|
12 |
<!-- |
|
13 |
<Grid></Grid> |
|
14 |
<Canvas></Canvas> |
|
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 | 17 |
|
18 |
</ItemsPanelTemplate> |
|
19 |
</UserControl.Resources> |
|
55 | 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 | 22 |
ItemsSource="{Binding Path=AnnotList}" ItemTemplate="{StaticResource slbDataTemplate}" ItemsPanel="{StaticResource slbItemsPanelTemplate}" |
23 |
> |
|
24 |
||
25 |
</Custom:SurfaceListBox> |
|
26 |
<!--ListView DataContext="{Binding Path=AnnotList}" |
|
124 | 27 |
ItemsSource="{Binding}" Background="{x:Null}" BorderThickness="0" x:Name="listview" ScrollViewer.HorizontalScrollBarVisibility="Hidden"> |
70 | 28 |
|
29 |
<ListView.ItemTemplate> |
|
30 |
<DataTemplate> |
|
31 |
<vw:TimelineAnnotationView/> |
|
32 |
</DataTemplate> |
|
33 |
</ListView.ItemTemplate> |
|
34 |
||
35 |
<ListView.ItemsPanel> |
|
36 |
<ItemsPanelTemplate> |
|
37 |
<StackPanel Orientation="Horizontal"/> |
|
38 |
</ItemsPanelTemplate> |
|
39 |
</ListView.ItemsPanel> |
|
55 | 40 |
</ListView> |
143 | 41 |
<TextBlock Text="{Binding Path=Title}" Height="27" VerticalAlignment="Top" Margin="0,0,0,0" /--> |
55 | 42 |
</Grid> |
43 |
</UserControl> |