client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml
changeset 0 249d70e7b32d
child 4 cf756528609e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml	Wed Nov 18 15:30:31 2009 +0100
@@ -0,0 +1,85 @@
+<UserControl
+	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
+	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
+	mc:Ignorable="d"
+	xmlns:Berico_Windows_Controls="clr-namespace:Berico.Windows.Controls;assembly=Berico.Windows.Controls" 
+	x:Class="Iri.Modernisation.Controls.View.AnnotationMaker"
+    xmlns:Data="clr-namespace:Iri.Modernisation.Data.Models;assembly=Iri.Modernisation.Data"
+    xmlns:Converter="clr-namespace:Iri.Modernisation.Controls.Converter"
+	xmlns:View="clr-namespace:Iri.Modernisation.Controls.View"
+    xmlns:Input="clr-namespace:SLExtensions.Input;assembly=SLExtensions" 
+    d:DesignWidth="312" Width="312" Height="320" 
+    IsEnabled="{Binding IsControlEnable,Mode=TwoWay}"
+    >
+    <UserControl.Resources>
+      
+    	<ResourceDictionary>
+    		<ResourceDictionary.MergedDictionaries>
+    			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_AnnotationMaker.xaml"/>
+    			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_CommonTemplate.xaml"/>
+    			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
+    		</ResourceDictionary.MergedDictionaries>
+    		
+      
+    		<Converter:TagArrayConverter x:Key="TagConvert"/>
+    	</ResourceDictionary>
+    </UserControl.Resources>
+	
+        <Grid x:Name="AnnotationMakerPanel">
+		<StackPanel x:Name="HeaderAnnotationMarkerPanel" Height="33" Orientation="Horizontal" Margin="0,0,8,0" VerticalAlignment="Top">
+			<TextBlock   Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel"  Text="Annotez ce segment" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
+			<ListBox Style="{StaticResource HorizontalListBox}"   SelectedItem="{Binding SelectedType,Mode=TwoWay}"  SelectedIndex="0" x:Name="TypeAnnotationList"  Margin="-27,0,0,2" Width="137" >
+				
+                <Rectangle x:Name="RectPolemic" Fill="Red" Stroke="Black" Height="20" Width="22">
+                    
+                </Rectangle>
+                <Rectangle x:Name="RectAdhesion" Fill="#FF13FF00" Stroke="Black" Height="20" Width="22"/>
+				<Rectangle x:Name="RectReferences" Fill="#FF0D00FF" Stroke="Black" Height="20" Width="22"/>
+				<Rectangle x:Name="RectQuestion" Fill="#FFE7FF02" Stroke="Black" Height="20" Width="22"/>
+			</ListBox>		
+		</StackPanel>
+		<StackPanel x:Name="AnnotationTimeLinePanel" Height="87" VerticalAlignment="Top" Margin="0,37,0,0" >
+		<Slider x:Name="TimeControl" Minimum="{Binding RefElement.TimerIn.TotalMilliseconds, Mode=TwoWay}" Maximum="{Binding RefElement.TimerOut.TotalMilliseconds, Mode=TwoWay}"    />
+			<!--<View:SegmentElement Height="22" HorizontalAlignment="Left" Width="296"/>-->
+			<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"/>		
+		<StackPanel x:Name="AnnotationTimeLineControlPanel" Height="27" HorizontalAlignment="Center" Margin="0,-1,0,0" Orientation="Horizontal">
+			<Button x:Name="AnnotationLeftTrim" Height="23" Input:CommandService.Command="LeftTrim"  VerticalAlignment="Top" Width="25" Content="["/>
+			<Button x:Name="VideoControlPause" Height="23" Input:CommandService.Command="Pause"  VerticalAlignment="Top" Width="36" Content="||"/>
+			<Button x:Name="VideoControlPlay" Input:CommandService.Command="PlayVideo" Height="23"  VerticalAlignment="Top" Width="29" Content="|&gt;"/>
+			<Button x:Name="AnnotationRightTrim" Input:CommandService.Command="RightTrim" Height="23"  VerticalAlignment="Top" Width="24" Content="]" ToolTipService.ToolTip=""/>
+		</StackPanel>
+	</StackPanel>
+	<Grid x:Name="AnnotationMakerWriterPanel" Margin="0,108,8,74">
+		<Grid.RowDefinitions>
+			<RowDefinition Height="0.957*"/>
+			<RowDefinition Height="0.043*"/>
+		</Grid.RowDefinitions>
+			
+			<TextBox x:Name="TitleAnnotationTextBox" HorizontalAlignment="Left"  Width="223" Text="{Binding Title, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="24,0,0,0"/>
+			<TextBox x:Name="DescriptionAnnotationTextBox"  Text="{Binding Description, Mode=TwoWay}"  TextWrapping="Wrap" Margin="12,24,0,0" Height="48" VerticalAlignment="Top" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"/>
+			<TextBox x:Name="KeyWordAnnotationTextBox"  Text="{Binding Tags, Mode=TwoWay}" TextWrapping="Wrap" Margin="12,-18,0,0" Grid.Row="1" d:LayoutOverrides="Height"/>
+			<Rectangle Fill="{Binding SelectedItem.Fill, ElementName=TypeAnnotationList, Mode=OneWay}" Stroke="Black" Height="21" HorizontalAlignment="Left" VerticalAlignment="Top" Width="20"/>
+			<Rectangle Fill="{Binding SelectedItem.Fill, ElementName=TypeAnnotationList, Mode=OneWay}" Stroke="Black" HorizontalAlignment="Left" Margin="0,20,0,0" Width="8" Grid.RowSpan="2"/>
+			
+			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="KeyWordLabel"  Text="{Binding RefTags, Converter={StaticResource TagConvert}}" TextWrapping="Wrap" Margin="12,79,0,22"/>
+			
+		</Grid>
+		
+		<StackPanel x:Name="AnnotationContextualLinkPanel" Height="74" Margin="0,0,8,0" VerticalAlignment="Bottom">
+			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel"  Text="Ajouter un lien contextuel" TextWrapping="Wrap"/>
+			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualBindedLabel"  TextWrapping="Wrap" HorizontalAlignment="Left" Width="295" Text="{Binding PolemicRelation.ToElement.Title}" Height="26"/>
+			<StackPanel x:Name="ContextualBinderPanel" Orientation="Horizontal">
+                <View:ContextualLinkBinder PolemicType="Polemic"  x:Name="Binder1" />
+                <View:ContextualLinkBinder PolemicType="Adhesion" x:Name="Binder2" />
+                <View:ContextualLinkBinder PolemicType="Reference" x:Name="Binder3" />
+                <View:ContextualLinkBinder PolemicType="Question"  x:Name="Binder4"/>   
+            </StackPanel>
+
+          
+
+        </StackPanel>
+		<Button Input:CommandService.Command="OkClick" Input:CommandService.CommandParameter="{Binding}" x:Name="AnnotationOkButton"  Content="Ok" HorizontalAlignment="Right" Width="48" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0.508,-0.091" Margin="0,282,8,0" VerticalAlignment="Top" Height="30"/>
+	</Grid>
+</UserControl>
\ No newline at end of file