client/src/Iri.Modernisation.Controls/View/AnnotationMaker/AnnotationMaker.xaml
changeset 28 2d4ec5ab2a40
parent 13 b5ee436add3d
child 34 4d9ebc6fbbe8
equal deleted inserted replaced
27:f292db96b050 28:2d4ec5ab2a40
    23     			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
    23     			<ResourceDictionary Source="/Iri.Modernisation.Styles;Component/Templates_Binder.xaml"/>
    24     		</ResourceDictionary.MergedDictionaries>
    24     		</ResourceDictionary.MergedDictionaries>
    25 
    25 
    26             <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
    26             <Lang:LangResource x:Name="LangLabels" x:Key="LangLabels"></Lang:LangResource>
    27                 <Converter:TagArrayConverter x:Key="TagConvert"/>
    27                 <Converter:TagArrayConverter x:Key="TagConvert"/>
       
    28 				<Converter:ColorToSolidBrush x:Key="ColorToBrush"/>
    28     	</ResourceDictionary>
    29     	</ResourceDictionary>
    29     </UserControl.Resources>
    30     </UserControl.Resources>
    30 	
    31 	
    31         <Grid x:Name="AnnotationMakerPanel">
    32         <Grid x:Name="AnnotationMakerPanel">
    32 		<StackPanel x:Name="HeaderAnnotationMarkerPanel" Height="33" Orientation="Horizontal" Margin="0,0,8,0" VerticalAlignment="Top">
    33 		<StackPanel x:Name="HeaderAnnotationMarkerPanel" Height="33" Orientation="Horizontal" Margin="0,0,8,0" VerticalAlignment="Top">
    33 			<TextBlock   Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel"  Text="{Binding AnnotationMakerTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
    34 			<TextBlock   Style="{StaticResource CommonTextBlock}" x:Name="HeaderAnnotationMakerLabel"  Text="{Binding AnnotationMakerTitle, Source={StaticResource LangLabels}}" TextWrapping="Wrap" Width="166" Height="19" VerticalAlignment="Top"/>
    34 			<ListBox Style="{StaticResource HorizontalListBox}"   SelectedItem="{Binding SelectedType,Mode=TwoWay}"  SelectedIndex="0" x:Name="TypeAnnotationList"  Margin="-27,0,0,2" Width="137" >
    35 			<ListBox Style="{StaticResource HorizontalListBox}" ItemsSource="{Binding ListAnnotationDescription}" SelectedItem="{Binding SelectedType,Mode=TwoWay}"  x:Name="TypeAnnotationList"  Margin="-27,0,0,2" Width="137" >
    35 				
    36 			<ListBox.ItemTemplate>
    36                 <Rectangle x:Name="RectPolemic" Fill="Red" Stroke="Black" Height="20" Width="22">
    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">
    37                     
    43                     
    38                 </Rectangle>
    44                 </Rectangle>
    39                 <Rectangle x:Name="RectAdhesion" Fill="#FF13FF00" Stroke="Black" Height="20" Width="22"/>
    45                 <Rectangle x:Name="RectAdhesion" Fill="#FF13FF00" Stroke="Black" Height="20" Width="22"/>
    40 				<Rectangle x:Name="RectReferences" Fill="#FF0D00FF" Stroke="Black" Height="20" Width="22"/>
    46 				<Rectangle x:Name="RectReferences" Fill="#FF0D00FF" Stroke="Black" Height="20" Width="22"/>
    41 				<Rectangle x:Name="RectQuestion" Fill="#FFE7FF02" Stroke="Black" Height="20" Width="22"/>
    47 				<Rectangle x:Name="RectQuestion" Fill="#FFE7FF02" Stroke="Black" Height="20" Width="22"/>
    42 			</ListBox>		
    48 			
       
    49 				-->
       
    50                 </ListBox>		
    43 		</StackPanel>
    51 		</StackPanel>
    44 		<StackPanel x:Name="AnnotationTimeLinePanel" Height="87" VerticalAlignment="Top" Margin="0,37,0,0" >
    52 		<StackPanel x:Name="AnnotationTimeLinePanel" Height="87" VerticalAlignment="Top" Margin="0,37,0,0" >
    45 		<Slider x:Name="TimeControl" Minimum="{Binding RefElement.TimerIn.TotalMilliseconds, Mode=TwoWay}" Maximum="{Binding RefElement.TimerOut.TotalMilliseconds, Mode=TwoWay}"    />
    53 		<Slider x:Name="TimeControl" Minimum="{Binding RefElement.TimerIn.TotalMilliseconds, Mode=TwoWay}" Maximum="{Binding RefElement.TimerOut.TotalMilliseconds, Mode=TwoWay}"    />
    46 			<!--<View:SegmentElement Height="22" HorizontalAlignment="Left" Width="296"/>-->
    54 			<!--<View:SegmentElement Height="22" HorizontalAlignment="Left" Width="296"/>-->
    47 			<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"/>		
    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"/>		
    59 		</Grid.RowDefinitions>
    67 		</Grid.RowDefinitions>
    60 			
    68 			
    61 			<TextBox x:Name="TitleAnnotationTextBox" HorizontalAlignment="Left"  Width="223" Text="{Binding Title, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="24,0,0,0"/>
    69 			<TextBox x:Name="TitleAnnotationTextBox" HorizontalAlignment="Left"  Width="223" Text="{Binding Title, Mode=TwoWay}" TextWrapping="Wrap" VerticalAlignment="Top" Margin="24,0,0,0"/>
    62 			<TextBox x:Name="DescriptionAnnotationTextBox"  Text="{Binding Description, Mode=TwoWay}"  TextWrapping="Wrap" Margin="12,24,0,0" Height="48" VerticalAlignment="Top" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"/>
    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"/>
    63 			<TextBox x:Name="KeyWordAnnotationTextBox"  Text="{Binding Tags, Mode=TwoWay}" TextWrapping="Wrap" Margin="12,-18,0,0" Grid.Row="1" d:LayoutOverrides="Height"/>
    71 			<TextBox x:Name="KeyWordAnnotationTextBox"  Text="{Binding Tags, Mode=TwoWay}" TextWrapping="Wrap" Margin="12,-18,0,0" Grid.Row="1" d:LayoutOverrides="Height"/>
    64 			<Rectangle Fill="{Binding SelectedItem.Fill, ElementName=TypeAnnotationList, Mode=OneWay}" Stroke="Black" Height="21" HorizontalAlignment="Left" VerticalAlignment="Top" Width="20"/>
    72 			<Rectangle Fill="{Binding SelectedType.Color,Converter={StaticResource ColorToBrush}}" Stroke="Black" Height="21" HorizontalAlignment="Left" VerticalAlignment="Top" Width="20"/>
    65 			<Rectangle Fill="{Binding SelectedItem.Fill, ElementName=TypeAnnotationList, Mode=OneWay}" Stroke="Black" HorizontalAlignment="Left" Margin="0,20,0,0" Width="8" Grid.RowSpan="2"/>
    73 			<Rectangle Fill="{Binding SelectedType.Color,Converter={StaticResource ColorToBrush}}" Stroke="Black" HorizontalAlignment="Left" Margin="0,20,0,0" Width="8" Grid.RowSpan="2"/>
    66 			
    74 			
    67 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="KeyWordLabel"  Text="{Binding RefTags, Converter={StaticResource TagConvert}}" TextWrapping="Wrap" Margin="12,79,0,22"/>
    75 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="KeyWordLabel"  Text="{Binding RefTags, Converter={StaticResource TagConvert}}" TextWrapping="Wrap" Margin="12,79,0,22"/>
    68 			
    76 			
    69 		</Grid>
    77 		</Grid>
    70 		<StackPanel x:Name="AnnotationContextualLinkPanel" Height="74" Margin="0,0,8,0" VerticalAlignment="Bottom">
    78 		<StackPanel x:Name="AnnotationContextualLinkPanel" Height="74" Margin="0,0,8,0" VerticalAlignment="Bottom">
    71 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel"  Text="{Binding AnnotationMakerAddLinkLabel, Source={StaticResource LangLabels}}" TextWrapping="Wrap"/>
    79 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualLinkLabel"  Text="{Binding AnnotationMakerAddLinkLabel, Source={StaticResource LangLabels}}" TextWrapping="Wrap"/>
    72 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualBindedLabel"  TextWrapping="Wrap" HorizontalAlignment="Left" Width="295" Text="{Binding PolemicRelation.ToElement.Title}" Height="26"/>
    80 			<TextBlock  Style="{StaticResource CommonTextBlock}" x:Name="AnnotationContextualBindedLabel"  TextWrapping="Wrap" HorizontalAlignment="Left" Width="295" Text="{Binding PolemicRelation.ToElement.Title}" Height="26"/>
    73 			<StackPanel x:Name="ContextualBinderPanel" Orientation="Horizontal">
    81 			<ListBox  ItemsSource="{Binding ListAnnotationDescription}" Style="{StaticResource HorizontalListBox}" Margin="0,0,72,0" Height="32">
    74                 <View:ContextualLinkBinder PolemicType="Polemic"  x:Name="Binder1" />
    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" />
    75                 <View:ContextualLinkBinder PolemicType="Adhesion" x:Name="Binder2" />
    90                 <View:ContextualLinkBinder PolemicType="Adhesion" x:Name="Binder2" />
    76                 <View:ContextualLinkBinder PolemicType="Reference" x:Name="Binder3" />
    91                 <View:ContextualLinkBinder PolemicType="Reference" x:Name="Binder3" />
    77                 <View:ContextualLinkBinder PolemicType="Question"  x:Name="Binder4"/>   
    92                 <View:ContextualLinkBinder PolemicType="Question"  x:Name="Binder4"/>   -->
    78             </StackPanel>
    93             </StackPanel>
    79 
    94 
    80           
    95           
    81 
    96 
    82         </StackPanel>
    97         </StackPanel>