author | ARIAS Santiago |
Sun, 25 Oct 2009 12:38:45 +0100 | |
changeset 168 | d70ee2002f75 |
parent 150 | 569925b65604 |
child 166 | 33c2e634df13 |
permissions | -rw-r--r-- |
55 | 1 |
<UserControl |
2 |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
3 |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
4 |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
5 |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
6 |
xmlns:Custom="http://schemas.microsoft.com/surface/2008" |
|
7 |
mc:Ignorable="d" |
|
8 |
x:Class="FingersDance.Views.TimelineAnnotationView" |
|
71 | 9 |
xmlns:vw="clr-namespace:FingersDance.Views" |
55 | 10 |
x:Name="UserControl" |
143 | 11 |
d:DesignWidth="640" d:DesignHeight="480" Width="300" Height="40"> |
71 | 12 |
<UserControl.Resources> |
143 | 13 |
<vw:ThicknessSingleValueConverter x:Name="myThicknessSingleValueConverter" x:Key="myThicknessSingleValueConverter"/> |
14 |
<vw:VisibilityConverter x:Name="myVisibilityConverter" x:Key="myVisibilityConverter"/> |
|
150
569925b65604
Annotations are now colored with the same color as the pivot's button
cavaliet
parents:
146
diff
changeset
|
15 |
<vw:ColorConverter x:Name="myColorConverter" x:Key="myColorConverter"/> |
71 | 16 |
</UserControl.Resources> |
143 | 17 |
<Custom:SurfaceUserControl x:Name="LayoutRoot" Margin="{Binding Path=MarginLeft, Converter={StaticResource myThicknessSingleValueConverter}}" |
18 |
> |
|
19 |
<Grid> |
|
20 |
<Rectangle Fill="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding Path=Dur}" Height="40" Opacity="0.0"/> |
|
21 |
<TextBox HorizontalAlignment="Left" Text="{Binding Path=GestureType}" Width="40" Margin="0,20,0,0" Visibility="{Binding Path=Dur, Converter={StaticResource myVisibilityConverter}}"/> |
|
150
569925b65604
Annotations are now colored with the same color as the pivot's button
cavaliet
parents:
146
diff
changeset
|
22 |
<Ellipse Stroke="{Binding Path=Color, Converter={StaticResource myColorConverter}}" Fill="{x:Null}" Margin="-3,16,0,0" Height="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="8"/> |
569925b65604
Annotations are now colored with the same color as the pivot's button
cavaliet
parents:
146
diff
changeset
|
23 |
<Ellipse Fill="{Binding Path=Color, Converter={StaticResource myColorConverter}}" Margin="-2,17,0,0" Height="6" VerticalAlignment="Top" HorizontalAlignment="Left" Width="6" Visibility="{Binding Path=Dur, Converter={StaticResource myVisibilityConverter}}" /> |
569925b65604
Annotations are now colored with the same color as the pivot's button
cavaliet
parents:
146
diff
changeset
|
24 |
<Rectangle Fill="{Binding Path=Color, Converter={StaticResource myColorConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="2" Height="17"/> |
569925b65604
Annotations are now colored with the same color as the pivot's button
cavaliet
parents:
146
diff
changeset
|
25 |
<Rectangle Fill="{Binding Path=Color, Converter={StaticResource myColorConverter}}" HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding Path=Dur}" Height="2"/> |
143 | 26 |
</Grid> |
27 |
</Custom:SurfaceUserControl> |
|
55 | 28 |
</UserControl> |