| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <UserControl x:Class="ivf_tl_Manage.Views.MarkUseView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:ivf_tl_Manage.Views"
- xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls"
- mc:Ignorable="d"
- Width="1830" Height="1015"
- FontFamily="{StaticResource sourceHan}">
- <Canvas x:Name="Canvas_Root" Width="1830" Height="1015">
- <!--<StackPanel Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2" Visibility="{Binding IsDishRecord,Converter={StaticResource BoolToVisibilityConvert}}">
- <Button Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0001}" BorderThickness="0" Background="Transparent" Click="Button_Click"/>
- <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
- <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0149}" BorderThickness="0" Background="Transparent" Click="Parien_Click"/>
- <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
- <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{Binding Title}" BorderThickness="0" Background="Transparent" Click="Parien1_Click"/>
- <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
- <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0159}"/>
- </StackPanel>
- <StackPanel Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2" Visibility="{Binding IsDishRecord,Converter={StaticResource BooleanToVisibilityConverter}}">
- <Button Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{DynamicResource 0002}" BorderThickness="0" Background="Transparent" Click="RecordParien_Click"/>
- <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
- <Button Margin="8 0 0 0" Style="{StaticResource ButtonStyle1}" FontWeight="Bold" FontSize="28" Content="{Binding Title}" BorderThickness="0" Background="Transparent" Click="RecordParien1_Click"/>
- <TextBlock Margin="8 0 0 0" VerticalAlignment="Center" FontWeight="Bold" Foreground="#9B9B9B" FontSize="28" Text=">"/>
- <TextBlock Margin="8 0 0 0" FontWeight="Bold" Foreground="Black" FontSize="32" Text="{DynamicResource 0159}"/>
- </StackPanel>-->
- <StackPanel x:Name="_nav_StackPanel" Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2000"/>
- <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}"
- DefeatImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownGrayIcon.png"
- OpenImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PullDownBlueIcon.png"/>
- <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}"/>
- <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}"/>
- <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}"/>
- <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}"/>
- <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"/>
-
- <Canvas x:Name="_canvas" Canvas.Left="265" Canvas.Top="23" Width="710" Height="710" >
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DishDetailBackground.png"/>
- </Canvas.Background>
- <Ellipse Panel.ZIndex="1" Canvas.Left="190" Canvas.Top="190" x:Name="_mask" Fill="#4d75ac" Width="330" Height="330"/>
- <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">
- <Image.RenderTransform>
- <RotateTransform/>
- </Image.RenderTransform>
- </Image>
- <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"/>
- <Canvas x:Name="Canvas_Load" Panel.ZIndex="3" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330" >
- <Image x:Name="Image_Load" Width="330" Height="330" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/VideoLoadIcon.png"/>
- <TextBlock x:Name="TextBlock_Load" Canvas.Top="203" TextAlignment="Center" Width="330" FontWeight="Medium" FontSize="20" Foreground="#7D7D7D" Text="{DynamicResource 0497}"/>
- </Canvas>
- <MediaElement Panel.ZIndex="8" x:Name="mediaElementPlayer" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330" LoadedBehavior="Manual">
- <MediaElement.OpacityMask>
- <VisualBrush Visual="{Binding ElementName=_mask}"/>
- </MediaElement.OpacityMask>
- </MediaElement>
- <Canvas x:Name="Canvas_preview" Panel.ZIndex="9" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330">
- <Image x:Name="_preview" Width="330" Height="330" >
- <Image.OpacityMask>
- <VisualBrush Visual="{Binding ElementName=_mask}"/>
- </Image.OpacityMask>
- <!--<Image.Clip>
- <EllipseGeometry Center="165,165" RadiusX="165" RadiusY="165"/>
- </Image.Clip>-->
- </Image>
- <TextBlock x:Name="TextBlock_preview" Canvas.Top="198" TextAlignment="Center" Width="330" FontWeight="Medium" FontSize="20" Foreground="#7D7D7D" Text=""/>
- </Canvas>
- <Canvas Background="Transparent" MouseDown="PreviewMouseDownEvent" x:Name="canvas1" Panel.ZIndex="10" Canvas.Left="190" Canvas.Top="190" Width="330" Height="330">
- <Canvas.OpacityMask>
- <VisualBrush Visual="{Binding ElementName=_mask}"/>
- </Canvas.OpacityMask>
- </Canvas>
- </Canvas>
- <!--<StackPanel Canvas.Left="225" Canvas.Top="715" Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" x:Name="_quickT" Canvas.Left="225" Canvas.Top="715" Text="{DynamicResource 0164}" FontWeight="Medium" Foreground="#707070" FontSize="24"/>
- <StackPanel VerticalAlignment="Center" x:Name="_quick_StackPanel" Margin="0 0 0 0" Orientation="Horizontal" Canvas.Left="336" Canvas.Top="713" Height="40"/>
- </StackPanel>-->
- <StackPanel VerticalAlignment="Center" x:Name="_quick_StackPanel" Orientation="Horizontal" Canvas.Left="200" Canvas.Top="713" Height="40"/>
- <!--<TextBlock x:Name="_quickT1" Canvas.Left="225" Canvas.Top="715" Text="{DynamicResource 0164}" FontWeight="Medium" Foreground="#707070" FontSize="24"/>-->
- <!--<StackPanel x:Name="_quick_StackPanel1" Orientation="Horizontal" Canvas.Left="336" Canvas.Top="713" Height="40">-->
- <!--<customControl:ButtonLeftImage IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
- Content="2PN" FontWeight="Medium" FontSize="24"
- Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
- <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
- Content="2PN" FontWeight="Medium" FontSize="24"
- Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
- <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
- Content="2PN" FontWeight="Medium" FontSize="24"
- Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
- <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
- Content="2PN" FontWeight="Medium" FontSize="24"
- Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>
- <customControl:ButtonLeftImage Margin="40 0 0 0" IconWidth="40" IconHeight="40" IconMargin="0 0 5 0"
- Content="2PN" FontWeight="Medium" FontSize="24"
- Foreground="#9B9B9B" MouseOverForeground="#4D4D4D"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailQuickMouseOverIcon.png"/>-->
- <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"/>
- <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"/>
- <StackPanel Canvas.Left="1155" Canvas.Top="784" Width="60" Height="100">
- <TextBlock Margin="0 18 0 0" Height="37.5" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="26" Foreground="#4D4D4D" Text="{Binding CurrentFocal}"/>
- <TextBlock Height="23" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Medium" FontSize="16" Foreground="#707070" Text="focal"/>
- </StackPanel>
- <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"/>
- <customControl:ButtonImage IsEnabled="False" x:Name="_lastButton" Canvas.Left="475" Canvas.Top="895" Width="100" Height="100" Click="PreviousFrame_Click"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonMouseIcon.png"
- EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailLastZhenButtonEnabledIcon.png"/>
- <customControl:ButtonImage IsEnabled="False" x:Name="_playButton" Canvas.Left="565" Canvas.Top="890" Width="110" Height="110" Click="Video_Click"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonMouseIcon.png"
- EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailStartVideoButtonEnabledIcon.png"/>
- <customControl:ButtonImage IsEnabled="False" x:Name="_nextButton" Canvas.Left="665" Canvas.Top="895" Width="100" Height="100" Click="NextFrame_Click"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonMouseIcon.png"
- EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailNextZhenButtonEnabledIcon.png"/>
- <Border x:Name="_fps_Border" Canvas.Left="52" Canvas.Top="784" Width="133" Height="106" MouseUp="Fps_MouseUp">
- <Border.Style>
- <Style TargetType="{x:Type Border}">
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFpsBackgroundMouseIcon.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="False">
- <Setter Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailFpsBackgroundIcon.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- <TextBlock FontWeight="Medium" FontSize="32" Foreground="White" Text="{Binding SelectedFps.Value}" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <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">
- <Canvas Width="123" Height="296" >
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/FpsBackgroundIcon.png"/>
- </Canvas.Background>
- <ListBox SelectionChanged="ListBox_SelectionChanged" ItemsSource="{Binding FpsItemList}" SelectedItem="{Binding SelectedFps, Mode=TwoWay}" DisplayMemberPath="Value" ItemContainerStyle="{StaticResource ListBoxItemContainerStyleP}" Canvas.Top="10" Width="123" Height="276"
- BorderThickness="0" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Background="Transparent"/>
- <!--<ItemsControl ItemsSource="{Binding FpsItemList}" Canvas.Top="10" Width="123" Height="276" >
- <ItemsControl.ItemContainerStyle>
- <Style>
- <Setter Property="Template">
- <Setter.Value>
- <DataTemplate DataType="{x:Type ComboBoxItem}">
- <Border x:Name="PopupBorder" MouseUp="Border_MouseUp" Margin="16 6 16 0" CornerRadius="8" Width="91" Height="39" Tag="{Binding}">
- <TextBlock x:Name="PopupTextBlock" Text="{Binding}" Foreground="#4D4D4D" FontSize="24" FontWeight="Medium" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <DataTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="PopupBorder" Property="Background" Value="#1A4D75AC"/>
- <Setter TargetName="PopupTextBlock" Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- </DataTemplate.Triggers>
- </DataTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </ItemsControl.ItemContainerStyle>
- </ItemsControl>-->
- </Canvas>
- </Popup>
- <Grid Canvas.Left="1056" Canvas.Top="53" Width="311" MaxHeight="610">
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition Height="*"/>
- <RowDefinition Height="35"/>
- </Grid.RowDefinitions>
- <Image Grid.Row="0" Width="311" Height="40" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkTopBackground.png"/>
- <Grid Grid.Row="1">
- <Grid.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkCenterBackground.png"/>
- </Grid.Background>
- <Grid.RowDefinitions>
- <RowDefinition Height="36"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Canvas Height="36" >
- <TextBlock Canvas.Left="60" Margin="0 -5 0 0 " Text="{DynamicResource 0264}" FontWeight="Medium" FontSize="24"/>
- <TextBlock Canvas.Left="203" Margin="0 -5 0 0 " Text="{DynamicResource 0204}" FontWeight="Medium" FontSize="24"/>
- <Rectangle Canvas.Left="40" Canvas.Top="34" Width="231" Height="2" Fill="#4D75AC" RadiusX="1" RadiusY="1"/>
- </Canvas>
- <Grid Grid.Row="1" Width="268" Margin="0 10 0 0" >
- <ListBox BorderThickness="0" Background="Transparent" ItemsSource="{Binding MarkList}" SelectedItem="{Binding CurrentMarkEntity}"
- ManipulationBoundaryFeedback="ListBox_ManipulationBoundaryFeedback" ScrollViewer.PanningMode="Both" ScrollViewer.VerticalScrollBarVisibility="Hidden" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="False">
- <ListBox.ItemContainerStyle>
- <Style TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Foreground" Value="#4D4D4D"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Canvas MouseDown="Canvas_MouseDown" Tag="{Binding}" Width="268" Height="54" Background="{TemplateBinding Background}">
- <Border Width="134" Height="52.5">
- <TextBlock Text="{Binding name}" FontWeight="Medium" Foreground="{TemplateBinding Foreground}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Border Canvas.Left="134" Width="134" Height="52.5" >
- <!--{Binding minTime,StringFormat={}{0}h}-->
- <TextBlock Text="{Binding minTimeString}" FontWeight="Medium" Foreground="{TemplateBinding Foreground}" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
- </Border>
- <Rectangle Canvas.Left="18" Canvas.Top="52.5" Width="231" Height="1.5" Fill="#E5E5E5"/>
- </Canvas>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- <Setter Property="Background" Value="#E5E9EF"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </ListBox.ItemContainerStyle>
- </ListBox>
- </Grid>
- </Grid>
- <Image Grid.Row="2" Width="311" Height="35" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkBottomBackground.png"/>
- </Grid>
- <userControl:MarkDetailUserControl Canvas.Left="1357" Canvas.Top="53" MarkSource="{Binding CurrentMarkEntity}" SaveMarkEvent="MarkDetailUserControl_SaveMarkEvent"/>
- </Canvas>
- </UserControl>
|