MarkUseView.xaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. <UserControl x:Class="ivf_tl_Manage.Views.MarkUseView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ivf_tl_Manage.Views"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  8. xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls"
  9. mc:Ignorable="d"
  10. Width="1830" Height="1015"
  11. FontFamily="{StaticResource sourceHan}">
  12. <Canvas x:Name="Canvas_Root" Width="1830" Height="1015">
  13. <!--<StackPanel Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2" Visibility="{Binding IsDishRecord,Converter={StaticResource BoolToVisibilityConvert}}">
  14. <Button Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0001}" BorderThickness="0" Background="Transparent" Click="Button_Click"/>
  15. <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
  16. <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0149}" BorderThickness="0" Background="Transparent" Click="Parien_Click"/>
  17. <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
  18. <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{Binding Title}" BorderThickness="0" Background="Transparent" Click="Parien1_Click"/>
  19. <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
  20. <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0159}"/>
  21. </StackPanel>
  22. <StackPanel Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2" Visibility="{Binding IsDishRecord,Converter={StaticResource BooleanToVisibilityConverter}}">
  23. <Button Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0002}" BorderThickness="0" Background="Transparent" Click="RecordParien_Click"/>
  24. <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
  25. <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{Binding Title}" BorderThickness="0" Background="Transparent" Click="RecordParien1_Click"/>
  26. <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
  27. <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0159}"/>
  28. </StackPanel>-->
  29. <StackPanel x:Name="_nav_StackPanel" Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2000"/>
  30. <customControl:ComBoxCustom Visibility="Collapsed" Canvas.Left="40" Canvas.Top="103" DisplayMemberPath="name" ItemsSource="{Binding MarkModelTypeList}" SelectedItem="{Binding CurrentMarkModelType}" Width="250" Height="46" TipString="{DynamicResource 0263}"
  31. DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
  32. OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
  33. <customControl:ButtonBottomImage RenderOptions.BitmapScalingMode="HighQuality" Canvas.Left="48" Canvas.Top="110" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="EmbryoMove_Click" Content="{DynamicResource 0041}" FontWeight="Medium" FontSize="15" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailTransplantButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailTransplantMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailTransplantEnableIcon.png" EnabledForeground="#AFAFAF" IsEnabled="{Binding IsCurrentDish}"/>
  34. <customControl:ButtonBottomImage RenderOptions.BitmapScalingMode="HighQuality" Canvas.Left="148" Canvas.Top="110" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="EmbryoFree_Click" Content="{DynamicResource 0040}" FontWeight="Medium" FontSize="15" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFreezingButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFreezingMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFreezingEnableIcon.png" EnabledForeground="#AFAFAF" IsEnabled="{Binding IsCurrentDish}"/>
  35. <customControl:ButtonBottomImage RenderOptions.BitmapScalingMode="HighQuality" Canvas.Left="48" Canvas.Top="230" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="EmbryoInv_Click" Content="{DynamicResource 0042}" FontWeight="Medium" FontSize="15" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailCancellationButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailCancellationMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailCancellationEnableIcon.png" EnabledForeground="#AFAFAF" IsEnabled="{Binding IsCurrentDish}"/>
  36. <customControl:ButtonBottomImage RenderOptions.BitmapScalingMode="HighQuality" Canvas.Left="148" Canvas.Top="230" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="EmbryoDel_Click" Content="{DynamicResource 0043}" FontWeight="Medium" FontSize="15" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailDeleteButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailDeleteMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailDeleteEnableIcon.png" EnabledForeground="#AFAFAF" IsEnabled="{Binding IsCurrentDish}"/>
  37. <customControl:ButtonBottomImage Canvas.Left="48" Canvas.Top="350" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="ButtonBottomImage_Click" Content="{DynamicResource 0162}" FontWeight="Medium" FontSize="15" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetatilMarkDetailIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetatilMarkDetailMouseIcon.png"/>
  38. <Canvas x:Name="_canvas" Canvas.Left="265" Canvas.Top="23" Width="710" Height="710" >
  39. <Canvas.Background>
  40. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DishDetailBackground.png"/>
  41. </Canvas.Background>
  42. <Ellipse Panel.ZIndex="1" Canvas.Left="190" Canvas.Top="190" x:Name="_mask" Fill="#4d75ac" Width="330" Height="330"/>
  43. <Image Panel.ZIndex="2" x:Name="_sx" RenderTransformOrigin="0.5,0.5" Canvas.Left="50" Canvas.Top="50" Width="610" Height="610" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailSelectdIcon.png">
  44. <Image.RenderTransform>
  45. <RotateTransform/>
  46. </Image.RenderTransform>
  47. </Image>
  48. <Image Panel.ZIndex="3" Canvas.Left="180" Canvas.Top="180" Width="350" Height="350" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DishDetailSamallBackground.png"/>
  49. <Canvas x:Name="Canvas_Load" Panel.ZIndex="3" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330" >
  50. <Image x:Name="Image_Load" Width="330" Height="330" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/VideoLoadIcon.png"/>
  51. <TextBlock x:Name="TextBlock_Load" Canvas.Top="203" TextAlignment="Center" Width="330" FontWeight="Medium" FontSize="20" Foreground="#7D7D7D" Text="{DynamicResource 0497}"/>
  52. </Canvas>
  53. <MediaElement Panel.ZIndex="8" x:Name="mediaElementPlayer" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330" LoadedBehavior="Manual">
  54. <MediaElement.OpacityMask>
  55. <VisualBrush Visual="{Binding ElementName=_mask}"/>
  56. </MediaElement.OpacityMask>
  57. </MediaElement>
  58. <Canvas x:Name="Canvas_preview" Panel.ZIndex="9" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330">
  59. <Image x:Name="_preview" Width="330" Height="330" >
  60. <Image.OpacityMask>
  61. <VisualBrush Visual="{Binding ElementName=_mask}"/>
  62. </Image.OpacityMask>
  63. <!--<Image.Clip>
  64. <EllipseGeometry Center="165,165" RadiusX="165" RadiusY="165"/>
  65. </Image.Clip>-->
  66. </Image>
  67. <TextBlock x:Name="TextBlock_preview" Canvas.Top="198" TextAlignment="Center" Width="330" FontWeight="Medium" FontSize="20" Foreground="#7D7D7D" Text=""/>
  68. </Canvas>
  69. <Canvas Background="Transparent" MouseDown="PreviewMouseDownEvent" x:Name="canvas1" Panel.ZIndex="10" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330">
  70. <Canvas.OpacityMask>
  71. <VisualBrush Visual="{Binding ElementName=_mask}"/>
  72. </Canvas.OpacityMask>
  73. </Canvas>
  74. </Canvas>
  75. <!--<StackPanel Canvas.Left="225" Canvas.Top="715" Orientation="Horizontal">
  76. <TextBlock VerticalAlignment="Center" x:Name="_quickT" Canvas.Left="225" Canvas.Top="715" Text="{DynamicResource 0164}" FontWeight="Medium" Foreground="#707070" FontSize="24"/>
  77. <StackPanel VerticalAlignment="Center" x:Name="_quick_StackPanel" Margin="0 0 0 0" Orientation="Horizontal" Canvas.Left="336" Canvas.Top="713" Height="40"/>
  78. </StackPanel>-->
  79. <StackPanel VerticalAlignment="Center" x:Name="_quick_StackPanel" Orientation="Horizontal" Canvas.Left="200" Canvas.Top="713" Height="40"/>
  80. <!--<TextBlock x:Name="_quickT1" Canvas.Left="225" Canvas.Top="715" Text="{DynamicResource 0164}" FontWeight="Medium" Foreground="#707070" FontSize="24"/>-->
  81. <!--<StackPanel x:Name="_quick_StackPanel1" Orientation="Horizontal" Canvas.Left="336" Canvas.Top="713" Height="40">-->
  82. <!--<customControl:ButtonLeftImage IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
  83. Content="2PN" FontWeight="Medium" FontSize="24"
  84. Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
  85. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
  86. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
  87. <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
  88. Content="2PN" FontWeight="Medium" FontSize="24"
  89. Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
  90. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
  91. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
  92. <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
  93. Content="2PN" FontWeight="Medium" FontSize="24"
  94. Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
  95. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
  96. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
  97. <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
  98. Content="2PN" FontWeight="Medium" FontSize="24"
  99. Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
  100. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
  101. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
  102. <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
  103. Content="2PN" FontWeight="Medium" FontSize="24"
  104. Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
  105. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
  106. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>-->
  107. <userControl:ProgressbarUserControl Canvas.Left="170" Canvas.Top="769" IsUpdata="{Binding IsUpdata}" VideoAllTime="{Binding VideoAllTime}" VideoCurrentTime="{Binding VideoCurrentTime,Mode=TwoWay}" AfterInteractionEvent="ProgressbarUserControl_AfterInteractionEvent" BeforeInteractionEvent="ProgressbarUserControl_BeforeInteractionEvent" LengthDevelopmentEvent="ProgressbarUserControl_LengthDevelopmentEvent" ProChangendEvent="ProgressbarUserControl_ProChangendEvent"/>
  108. <customControl:ButtonImage x:Name="_bigFocal_Button" Canvas.Left="1055" Canvas.Top="784" Width="100" Height="100" Click="BigFocus_Click" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailBigFocusIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailBigFocusMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailBigFocusEnableIcon.png"/>
  109. <StackPanel Canvas.Left="1155" Canvas.Top="784" Width="60" Height="100">
  110. <TextBlock Margin="0 18 0 0" Height="37.5" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="26" Foreground="#4D4D4D" Text="{Binding CurrentFocal}"/>
  111. <TextBlock Height="23" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="16" Foreground="#707070" Text="focal"/>
  112. </StackPanel>
  113. <customControl:ButtonImage x:Name="_smallFocal_Button" Canvas.Left="1215" Canvas.Top="784" Width="100" Height="100" Click="SmallFocus_Click" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailSmallFocusIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailSmallFocusMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailSmallFocusEnableIcon.png"/>
  114. <customControl:ButtonImage IsEnabled="False" x:Name="_lastButton" Canvas.Left="475" Canvas.Top="895" Width="100" Height="100" Click="PreviousFrame_Click"
  115. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonIcon.png"
  116. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonMouseIcon.png"
  117. EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonEnabledIcon.png"/>
  118. <customControl:ButtonImage IsEnabled="False" x:Name="_playButton" Canvas.Left="565" Canvas.Top="890" Width="110" Height="110" Click="Video_Click"
  119. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonIcon.png"
  120. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonMouseIcon.png"
  121. EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonEnabledIcon.png"/>
  122. <customControl:ButtonImage IsEnabled="False" x:Name="_nextButton" Canvas.Left="665" Canvas.Top="895" Width="100" Height="100" Click="NextFrame_Click"
  123. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonIcon.png"
  124. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonMouseIcon.png"
  125. EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonEnabledIcon.png"/>
  126. <Border x:Name="_fps_Border" Canvas.Left="52" Canvas.Top="784" Width="133" Height="106" MouseUp="Fps_MouseUp">
  127. <Border.Style>
  128. <Style TargetType="{x:Type Border}">
  129. <Style.Triggers>
  130. <Trigger Property="IsMouseOver" Value="True">
  131. <Setter Property="Background">
  132. <Setter.Value>
  133. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFpsBackgroundMouseIcon.png"/>
  134. </Setter.Value>
  135. </Setter>
  136. </Trigger>
  137. <Trigger Property="IsMouseOver" Value="False">
  138. <Setter Property="Background">
  139. <Setter.Value>
  140. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFpsBackgroundIcon.png"/>
  141. </Setter.Value>
  142. </Setter>
  143. </Trigger>
  144. </Style.Triggers>
  145. </Style>
  146. </Border.Style>
  147. <TextBlock FontWeight="Medium" FontSize="32" Foreground="White" Text="{Binding SelectedFps.Value}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  148. </Border>
  149. <Popup x:Name="_fps_Popup" HorizontalOffset="-5" VerticalOffset="15" PlacementTarget="{Binding ElementName=_fps_Border}" Placement="Top" AllowsTransparency="True" PopupAnimation="None" StaysOpen="False" Width="123" Height="296">
  150. <Canvas Width="123" Height="296" >
  151. <Canvas.Background>
  152. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/FpsBackgroundIcon.png"/>
  153. </Canvas.Background>
  154. <ListBox SelectionChanged="ListBox_SelectionChanged" ItemsSource="{Binding FpsItemList}" SelectedItem="{Binding SelectedFps, Mode=TwoWay}" DisplayMemberPath="Value" ItemContainerStyle="{StaticResource ListBoxItemContainerStyleP}" Canvas.Top="10" Width="123" Height="276"
  155. BorderThickness="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="Transparent"/>
  156. <!--<ItemsControl ItemsSource="{Binding FpsItemList}" Canvas.Top="10" Width="123" Height="276" >
  157. <ItemsControl.ItemContainerStyle>
  158. <Style>
  159. <Setter Property="Template">
  160. <Setter.Value>
  161. <DataTemplate DataType="{x:Type ComboBoxItem}">
  162. <Border x:Name="PopupBorder" MouseUp="Border_MouseUp" Margin="16 6 16 0" CornerRadius="8" Width="91" Height="39" Tag="{Binding}">
  163. <TextBlock x:Name="PopupTextBlock" Text="{Binding}" Foreground="#4D4D4D" FontSize="24" FontWeight="Medium" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  164. </Border>
  165. <DataTemplate.Triggers>
  166. <Trigger Property="IsSelected" Value="True">
  167. <Setter TargetName="PopupBorder" Property="Background" Value="#1A4D75AC"/>
  168. <Setter TargetName="PopupTextBlock" Property="Foreground" Value="#4D75AC"/>
  169. </Trigger>
  170. </DataTemplate.Triggers>
  171. </DataTemplate>
  172. </Setter.Value>
  173. </Setter>
  174. </Style>
  175. </ItemsControl.ItemContainerStyle>
  176. </ItemsControl>-->
  177. </Canvas>
  178. </Popup>
  179. <Grid Canvas.Left="1056" Canvas.Top="53" Width="311" MaxHeight="610">
  180. <Grid.RowDefinitions>
  181. <RowDefinition Height="40"/>
  182. <RowDefinition Height="*"/>
  183. <RowDefinition Height="35"/>
  184. </Grid.RowDefinitions>
  185. <Image Grid.Row="0" Width="311" Height="40" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkTopBackground.png"/>
  186. <Grid Grid.Row="1">
  187. <Grid.Background>
  188. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkCenterBackground.png"/>
  189. </Grid.Background>
  190. <Grid.RowDefinitions>
  191. <RowDefinition Height="36"/>
  192. <RowDefinition/>
  193. </Grid.RowDefinitions>
  194. <Canvas Height="36" >
  195. <TextBlock Canvas.Left="60" Margin="0 -5 0 0 " Text="{DynamicResource 0264}" FontWeight="Medium" FontSize="24"/>
  196. <TextBlock Canvas.Left="203" Margin="0 -5 0 0 " Text="{DynamicResource 0204}" FontWeight="Medium" FontSize="24"/>
  197. <Rectangle Canvas.Left="40" Canvas.Top="34" Width="231" Height="2" Fill="#4D75AC" RadiusX="1" RadiusY="1"/>
  198. </Canvas>
  199. <Grid Grid.Row="1" Width="268" Margin="0 10 0 0" >
  200. <ListBox BorderThickness="0" Background="Transparent" ItemsSource="{Binding MarkList}" SelectedItem="{Binding CurrentMarkEntity}"
  201. ManipulationBoundaryFeedback="ListBox_ManipulationBoundaryFeedback" ScrollViewer.PanningMode="Both" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False">
  202. <ListBox.ItemContainerStyle>
  203. <Style TargetType="{x:Type ListBoxItem}">
  204. <Setter Property="FontWeight" Value="Medium"/>
  205. <Setter Property="FontSize" Value="14"/>
  206. <Setter Property="Foreground" Value="#4D4D4D"/>
  207. <Setter Property="SnapsToDevicePixels" Value="True"/>
  208. <Setter Property="Padding" Value="0"/>
  209. <Setter Property="Background" Value="Transparent"/>
  210. <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  211. <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
  212. <Setter Property="BorderBrush" Value="Transparent"/>
  213. <Setter Property="BorderThickness" Value="0"/>
  214. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  215. <Setter Property="Template">
  216. <Setter.Value>
  217. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  218. <Canvas MouseDown="Canvas_MouseDown" Tag="{Binding}" Width="268" Height="54" Background="{TemplateBinding Background}">
  219. <Border Width="134" Height="52.5">
  220. <TextBlock Text="{Binding name}" FontWeight="Medium" Foreground="{TemplateBinding Foreground}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  221. </Border>
  222. <Border Canvas.Left="134" Width="134" Height="52.5" >
  223. <!--{Binding minTime,StringFormat={}{0}h}-->
  224. <TextBlock Text="{Binding minTimeString}" FontWeight="Medium" Foreground="{TemplateBinding Foreground}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  225. </Border>
  226. <Rectangle Canvas.Left="18" Canvas.Top="52.5" Width="231" Height="1.5" Fill="#E5E5E5"/>
  227. </Canvas>
  228. </ControlTemplate>
  229. </Setter.Value>
  230. </Setter>
  231. <Style.Triggers>
  232. <Trigger Property="IsSelected" Value="True">
  233. <Setter Property="Foreground" Value="#4D75AC"/>
  234. <Setter Property="Background" Value="#E5E9EF"/>
  235. </Trigger>
  236. <Trigger Property="IsMouseOver" Value="True">
  237. <Setter Property="Foreground" Value="#4D75AC"/>
  238. </Trigger>
  239. </Style.Triggers>
  240. </Style>
  241. </ListBox.ItemContainerStyle>
  242. </ListBox>
  243. </Grid>
  244. </Grid>
  245. <Image Grid.Row="2" Width="311" Height="35" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkBottomBackground.png"/>
  246. </Grid>
  247. <userControl:MarkDetailUserControl Canvas.Left="1357" Canvas.Top="53" MarkSource="{Binding CurrentMarkEntity}" SaveMarkEvent="MarkDetailUserControl_SaveMarkEvent"/>
  248. </Canvas>
  249. </UserControl>