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"/>
|
71
|
15 |
</UserControl.Resources>
|
143
|
16 |
<Custom:SurfaceUserControl x:Name="LayoutRoot" Margin="{Binding Path=MarginLeft, Converter={StaticResource myThicknessSingleValueConverter}}"
|
|
17 |
>
|
|
18 |
<Grid>
|
|
19 |
<Rectangle Fill="Black" HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding Path=Dur}" Height="40" Opacity="0.0"/>
|
|
20 |
<TextBox HorizontalAlignment="Left" Text="{Binding Path=GestureType}" Width="40" Margin="0,20,0,0" Visibility="{Binding Path=Dur, Converter={StaticResource myVisibilityConverter}}"/>
|
|
21 |
<Ellipse Stroke="Green" Fill="{x:Null}" Margin="-3,16,0,0" Height="8" VerticalAlignment="Top" HorizontalAlignment="Left" Width="8"/>
|
|
22 |
<Ellipse Fill="Green" Margin="-2,17,0,0" Height="6" VerticalAlignment="Top" HorizontalAlignment="Left" Width="6" Visibility="{Binding Path=Dur, Converter={StaticResource myVisibilityConverter}}" />
|
|
23 |
<Rectangle Fill="Green" HorizontalAlignment="Left" VerticalAlignment="Top" Width="2" Height="17"/>
|
|
24 |
<Rectangle Fill="Green" HorizontalAlignment="Left" VerticalAlignment="Top" Width="{Binding Path=Dur}" Height="2"/>
|
|
25 |
</Grid>
|
|
26 |
</Custom:SurfaceUserControl>
|
55
|
27 |
</UserControl> |