|
0
|
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 |
mc:Ignorable="d"
|
|
|
7 |
xmlns:Berico_Windows_Controls="clr-namespace:Berico.Windows.Controls;assembly=Berico.Windows.Controls"
|
|
|
8 |
x:Class="Iri.Modernisation.Controls.View.AnnotationMaker"
|
|
|
9 |
xmlns:Data="clr-namespace:Iri.Modernisation.Data.Models;assembly=Iri.Modernisation.Data"
|
|
|
10 |
xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
|
|
|
11 |
xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
|
|
|
12 |
xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions"
|
|
4
|
13 |
xmlns:Lang="clr-namespace:Iri.Modernisation.Lang;assembly=Iri.Modernisation.Lang"
|
|
0
|
14 |
d:DesignWidth="312" Width="312" Height="320"
|
|
|
15 |
IsEnabled="{Binding IsControlEnable,Mode=TwoWay}"
|
|
|
16 |
>
|
|
|
17 |
<UserControl.Resources>
|
|
|
18 |
|
|
|
19 |
<ResourceDictionary>
|
|
|
20 |
<ResourceDictionary.MergedDictionaries>
|
|
|
21 |
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_AnnotationMaker.xaml"/>
|
|
|
22 |
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_CommonTemplate.xaml"/>
|
|
|
23 |
<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
|
|
|
24 |
</ResourceDictionary.MergedDictionaries>
|
|
4
|
25 |
|
|
|
26 |
<Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
|
|
|
27 |
<Converter:TagArrayConverter x:Key="TagConvert"/>
|
|
28
|
28 |
<Converter:ColorToSolidBrush x:Key="ColorToBrush"/>
|
|
0
|
29 |
</ResourceDictionary>
|
|
|
30 |
</UserControl.Resources>
|
|
|
31 |
|
|
|
32 |
<Grid x:Name="AnnotationMakerPanel">
|
|
|
33 |
<StackPanel x:Name="HeaderAnnotationMarkerPanel" Height="33" Orientation="Horizontal" Margin="0,0,8,0" VerticalAlignment="Top">
|
|
4
|
34 |
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel" Text="{Binding AnnotationMakerTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
|
|
28
|
35 |
<ListBox Style="{StaticResource HorizontalListBox}" ItemsSource="{Binding ListAnnotationDescription}" SelectedItem="{Binding SelectedType,Mode=TwoWay}" x:Name="TypeAnnotationList" Margin="-27,0,0,2" Width="137" >
|
|
|
36 |
<ListBox.ItemTemplate>
|
|
|
37 |
<DataTemplate>
|
|
|
38 |
<Rectangle Fill="{Binding Color,Converter={StaticResource ColorToBrush}}" Stroke="Black" Height="20" Width="22"></Rectangle>
|
|
|
39 |
</DataTemplate>
|
|
|
40 |
</ListBox.ItemTemplate>
|
|
|
41 |
<!--
|
|
|
42 |
<Rectangle x:Name="RectPolemic" Fill="Red" Stroke="Black" Height="20" Width="22">
|
|
0
|
43 |
|
|
|
44 |
</Rectangle>
|
|
|
45 |
<Rectangle x:Name="RectAdhesion" Fill="#FF13FF00" Stroke="Black" Height="20" Width="22"/>
|
|
|
46 |
<Rectangle x:Name="RectReferences" Fill="#FF0D00FF" Stroke="Black" Height="20" Width="22"/>
|
|
|
47 |
<Rectangle x:Name="RectQuestion" Fill="#FFE7FF02" Stroke="Black" Height="20" Width="22"/>
|
|
28
|
48 |
|
|
|
49 |
-->
|
|
|
50 |
</ListBox>
|
|
0
|
51 |
</StackPanel>
|
|
|
52 |
<StackPanel x:Name="AnnotationTimeLinePanel" Height="87" VerticalAlignment="Top" Margin="0,37,0,0" >
|
|
|
53 |
<Slider x:Name="TimeControl" Minimum="{Binding RefElement.TimerIn.TotalMilliseconds, Mode=TwoWay}" Maximum="{Binding RefElement.TimerOut.TotalMilliseconds, Mode=TwoWay}" />
|
|
|
54 |
<!--<View:SegmentElement Height="22" HorizontalAlignment="Left" Width="296"/>-->
|
|
|
55 |
<Berico_Windows_Controls:Slider Style="{StaticResource Template_AnnotationMakerEditSlider}" Minimum="{Binding RefElement.TimerIn.TotalMilliseconds, Mode=TwoWay}" Maximum="{Binding RefElement.TimerOut.TotalMilliseconds, Mode=TwoWay}" LowerRangeValue="{Binding Begin, Mode=TwoWay}" UpperRangeValue="{Binding End, Mode=TwoWay}" x:Name="EditableAnnotation" Height="26" IsRangeEnabled="True" Value="-115"/>
|
|
|
56 |
<StackPanel x:Name="AnnotationTimeLineControlPanel" Height="27" HorizontalAlignment="Center" Margin="0,-1,0,0" Orientation="Horizontal">
|
|
|
57 |
<Button x:Name="AnnotationLeftTrim" Height="23" Input:CommandService.Command="LeftTrim" VerticalAlignment="Top" Width="25" Content="["/>
|
|
|
58 |
<Button x:Name="VideoControlPause" Height="23" Input:CommandService.Command="Pause" VerticalAlignment="Top" Width="36" Content="||"/>
|
|
|
59 |
<Button x:Name="VideoControlPlay" Input:CommandService.Command="PlayVideo" Height="23" VerticalAlignment="Top" Width="29" Content="|>"/>
|
|
|
60 |
<Button x:Name="AnnotationRightTrim" Input:CommandService.Command="RightTrim" Height="23" VerticalAlignment="Top" Width="24" Content="]" ToolTipService.ToolTip=""/>
|
|
|
61 |
</StackPanel>
|
|
|
62 |
</StackPanel>
|
|
|
63 |
<Grid x:Name="AnnotationMakerWriterPanel" Margin="0,108,8,74">
|
|
|
64 |
<Grid.RowDefinitions>
|
|
|
65 |
<RowDefinition Height="0.957*"/>
|
|
|
66 |
<RowDefinition Height="0.043*"/>
|
|
|
67 |
</Grid.RowDefinitions>
|
|
|
68 |
|
|
|
69 |
<TextBox x:Name="TitleAnnotationTextBox" HorizontalAlignment="Left" Width="223" Text="{Binding Title, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="24,0,0,0"/>
|
|
|
70 |
<TextBox x:Name="DescriptionAnnotationTextBox" Text="{Binding Description, Mode=TwoWay}" TextWrapping="Wrap" Margin="12,24,0,0" Height="48" VerticalAlignment="Top" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"/>
|
|
|
71 |
<TextBox x:Name="KeyWordAnnotationTextBox" Text="{Binding Tags, Mode=TwoWay}" TextWrapping="Wrap" Margin="12,-18,0,0" Grid.Row="1" d:LayoutOverrides="Height"/>
|
|
28
|
72 |
<Rectangle Fill="{Binding SelectedType.Color,Converter={StaticResource ColorToBrush}}" Stroke="Black" Height="21" HorizontalAlignment="Left" VerticalAlignment="Top" Width="20"/>
|
|
|
73 |
<Rectangle Fill="{Binding SelectedType.Color,Converter={StaticResource ColorToBrush}}" Stroke="Black" HorizontalAlignment="Left" Margin="0,20,0,0" Width="8" Grid.RowSpan="2"/>
|
|
0
|
74 |
|
|
|
75 |
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="KeyWordLabel" Text="{Binding RefTags, Converter={StaticResource TagConvert}}" TextWrapping="Wrap" Margin="12,79,0,22"/>
|
|
|
76 |
|
|
|
77 |
</Grid>
|
|
|
78 |
<StackPanel x:Name="AnnotationContextualLinkPanel" Height="74" Margin="0,0,8,0" VerticalAlignment="Bottom">
|
|
4
|
79 |
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel" Text="{Binding AnnotationMakerAddLinkLabel, Source={StaticResource LangLabels}}" TextWrapping="Wrap"/>
|
|
0
|
80 |
<TextBlock Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualBindedLabel" TextWrapping="Wrap" HorizontalAlignment="Left" Width="295" Text="{Binding PolemicRelation.ToElement.Title}" Height="26"/>
|
|
28
|
81 |
<ListBox ItemsSource="{Binding ListAnnotationDescription}" Style="{StaticResource HorizontalListBox}" Margin="0,0,72,0" Height="32">
|
|
|
82 |
<ListBox.ItemTemplate>
|
|
|
83 |
<DataTemplate>
|
|
|
84 |
<View:ContextualLinkBinder PolemicType="{Binding}" />
|
|
|
85 |
</DataTemplate>
|
|
|
86 |
</ListBox.ItemTemplate>
|
|
|
87 |
</ListBox>
|
|
|
88 |
<StackPanel x:Name="ContextualBinderPanel" Orientation="Horizontal" >
|
|
|
89 |
<!--<View:ContextualLinkBinder PolemicType="Polemic" x:Name="Binder1" />
|
|
0
|
90 |
<View:ContextualLinkBinder PolemicType="Adhesion" x:Name="Binder2" />
|
|
|
91 |
<View:ContextualLinkBinder PolemicType="Reference" x:Name="Binder3" />
|
|
28
|
92 |
<View:ContextualLinkBinder PolemicType="Question" x:Name="Binder4"/> -->
|
|
0
|
93 |
</StackPanel>
|
|
|
94 |
|
|
|
95 |
|
|
|
96 |
|
|
|
97 |
</StackPanel>
|
|
7
|
98 |
<Button Input:CommandService.Command="OkClick" Input:CommandService.CommandParameter="{Binding}" x:Name="AnnotationOkButton" Content="{Binding OkLabel, Source={StaticResource LangLabels}}" HorizontalAlignment="Right" Width="48" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0.508,-0.091" Margin="0,282,8,0" VerticalAlignment="Top" Height="30"/>
|
|
0
|
99 |
</Grid>
|
|
|
100 |
</UserControl> |