| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001 |
- <Application x:Class="ivf_tl_Manage.App"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="clr-namespace:ivf_tl_Manage"
- xmlns:viewModels="clr-namespace:ivf_tl_Manage.ViewModels"
- xmlns:views="clr-namespace:ivf_tl_Manage.Views"
- xmlns:converter="clr-namespace:ivf_tl_Manage.Converts"
- xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls"
- xmlns:sys="clr-namespace:System;assembly=mscorlib"
- StartupUri="MainWindow.xaml">
- <Application.Resources>
- <ResourceDictionary>
- <ResourceDictionary.MergedDictionaries>
- <ResourceDictionary>
- <FontFamily x:Key="sourceHan">
- Resources/Fonts/SourceHanSansSC-VF.ttf#Source Han Sans SC VF
- </FontFamily>
- </ResourceDictionary>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/Colors.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/Effects.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/Brushes.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/Geometrys.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/ConstProperty.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Resources/BaseStyleResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/Others/OtherResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/Blocks/BlocksResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/Buttons/ButtonResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/ScrollViewers/ScrollViewerResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/ListBoxs/ListBoxResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/ComboBoxs/ComboBoxResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/WpfControlLibrary;component/Controls/DatePickers/DatePickerResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/ivf_tl_CustomControls_PC;component/BaseStyle/BaseStyleResource.xaml"/>
- <ResourceDictionary Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Language/Chinese.xaml"/>
- <!--<ResourceDictionary Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Language/English.xaml"/>-->
- </ResourceDictionary.MergedDictionaries>
- <!--设备管理界面-->
- <DataTemplate DataType="{x:Type viewModels:DevManageViewModel}">
- <views:DevManageView/>
- </DataTemplate>
- <!--患者管理界面-->
- <DataTemplate DataType="{x:Type viewModels:PatientManageViewModel}">
- <views:PatientManageView/>
- </DataTemplate>
- <!--胚胎详情界面-->
- <DataTemplate DataType="{x:Type viewModels:DetailViewModel}">
- <views:DetailView/>
- </DataTemplate>
- <!--标记页面-->
- <DataTemplate DataType="{x:Type viewModels:MarkUseViewModel}">
- <views:MarkUseView/>
- </DataTemplate>
- <!--图片查看页面-->
- <DataTemplate DataType="{x:Type viewModels:DetailPicViewModel}">
- <views:DetailPicView/>
- </DataTemplate>
- <!--标记详情-->
- <DataTemplate DataType="{x:Type viewModels:MarkDetailViewModel}">
- <views:MarkDetail/>
- </DataTemplate>
- <!--标记明细-->
- <DataTemplate DataType="{x:Type viewModels:MarkDetailViewModel1}">
- <views:MarkDetail1/>
- </DataTemplate>
- <!--模型配置页面-->
- <DataTemplate DataType="{x:Type viewModels:MarkSettingViewModel}">
- <views:MarkSettingView/>
- </DataTemplate>
- <!--报警配置页面-->
- <DataTemplate DataType="{x:Type viewModels:AlarmSettingViewModel}">
- <views:AlarmSettingView/>
- </DataTemplate>
- <!--培养记录页面-->
- <DataTemplate DataType="{x:Type viewModels:DishRecordViewModel}">
- <views:DishRecordView/>
- </DataTemplate>
- <!--系统异常页面-->
- <DataTemplate DataType="{x:Type viewModels:AlarmHistoryViewModel}">
- <views:AlarmHistoryView/>
- </DataTemplate>
- <!--仓室页面-->
- <DataTemplate DataType="{x:Type viewModels:BinSettingViewModel}">
- <views:BinSetting/>
- </DataTemplate>
- <!--系统管理页面-->
- <DataTemplate DataType="{x:Type viewModels:AppSettingViewModel}">
- <views:AppSettingView/>
- </DataTemplate>
- <!--系统设置页面-->
- <DataTemplate DataType="{x:Type viewModels:HouseSettingViewModel}">
- <views:HouseSettingView/>
- </DataTemplate>
- <!--测试页面-->
- <DataTemplate DataType="{x:Type viewModels:TestViewModel}">
- <views:TestView/>
- </DataTemplate>
- <DataTemplate DataType="{x:Type viewModels:AlarmSettingNewViewModel}">
- <views:AlarmSettingViewNew/>
- </DataTemplate>
- <DataTemplate DataType="{x:Type viewModels:PdfViewModel}">
- <views:PdfView/>
- </DataTemplate>
-
- <converter:CompositeCollectionConverter x:Key="CompositeCollectionConverter" />
- <converter:ObjectToVisibilityConvert x:Key="ObjectToVisibilityConvert" />
- <converter:IntToDownStringConvert x:Key="IntToDownStringConvert" />
- <converter:IntToDownColorConvert x:Key="IntToDownColorConvert" />
- <converter:Int2ToDownVisibilityConvert x:Key="Int2ToDownVisibilityConvert" />
- <!--DeviceInfoUserControlConvert 设备管理界面-->
- <converter:CustomButtonIconConvert x:Key="CustomButtonIconConvert" />
- <converter:CustomButtonMouseOverIconConvert x:Key="CustomButtonMouseOverIconConvert" />
- <converter:ForegroundConver x:Key="ForegroundConver" />
- <converter:MouseForegroundConver x:Key="MouseForegroundConver" />
- <!--HouseInfoUserControlConvert 设备管理界面舱室卡片-->
- <converter:HouseSnForegroundConvert x:Key="HouseSnForegroundConvert" />
- <converter:DishInfoForegroundConver x:Key="DishInfoForegroundConver" />
- <converter:HouseInfoImageConvert x:Key="HouseInfoImageConvert" />
- <converter:HouseInfoImageConvert1 x:Key="HouseInfoImageConvert1" />
- <converter:HouseInfoAlarmImageConvert x:Key="HouseInfoAlarmImageConvert" />
- <converter:HouseInfoForegroundConver x:Key="HouseInfoForegroundConver" />
- <converter:HouseInfoForegroundConver1 x:Key="HouseInfoForegroundConver1" />
- <!--DishInfoUserControl 患者管理界面-->
- <converter:DishInfoUserOnlyVipConvert x:Key="DishInfoUserOnlyVipConvert" />
- <converter:DishInfoDataAndVipConvert x:Key="DishInfoDataAndVipConvert" />
- <converter:DishInfoDataAndVipConvert1 x:Key="DishInfoDataAndVipConvert1" />
- <converter:DishInfoOnlyHouseConvert x:Key="DishInfoOnlyHouseConvert" />
- <!--AddDishWindow 新建或者编辑患者信息-->
- <SolidColorBrush x:Key="ListBox.Static.Background1" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Static.Border1" Color="#FFABADB3"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Background1" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Border1" Color="#FFD9D9D9"/>
- <converter:AddDishOnlyVipConvert x:Key="AddDishOnlyVipConvert" />
- <!--AddDishWindow 模型配置界面-->
- <converter:MarkSettingStackpanelVisibilityConvert x:Key="MarkSettingStackpanelVisibilityConvert" />
- <converter:UnitToTextConvert x:Key="UnitToTextConvert" />
- <converter:CanvasBackgroundSourceConvert x:Key="CanvasBackgroundSourceConvert" />
- <converter:CanvasMouseOverBackgroundSourceConvert x:Key="CanvasMouseOverBackgroundSourceConvert" />
- <converter:CanvasBackgroundSourceConvert1 x:Key="CanvasBackgroundSourceConvert1" />
- <converter:CanvasMouseOverBackgroundSourceConvert1 x:Key="CanvasMouseOverBackgroundSourceConvert1" />
- <converter:TLStateInfoConvert x:Key="TLStateInfoConvert" />
- <converter:HouseInfoDishConvert x:Key="HouseInfoDishConvert" />
- <converter:Int_1ToHiddenConvert x:Key="Int_1ToHiddenConvert" />
- <converter:Int_1ToVisibleConvert x:Key="Int_1ToVisibleConvert" />
- <converter:Int0ToHiddenConvert x:Key="Int0ToHiddenConvert" />
- <converter:Int0ToCollapsedConvert x:Key="Int0ToCollapsedConvert" />
- <converter:Int0ToVisibilityConvert x:Key="Int0ToVisibilityConvert" />
- <converter:Int1ToVisibilityConvert x:Key="Int1ToVisibilityConvert" />
- <converter:Int1ToHiddenConvert x:Key="Int1ToHiddenConvert" />
- <converter:Int2ToVisibilityConvert x:Key="Int2ToVisibilityConvert" />
- <converter:IntToBoolConvert x:Key="IntToBoolConvert" />
- <converter:Int0ToBoolConvert x:Key="Int0ToBoolConvert" />
- <converter:BoolToVisibilityConvert x:Key="BoolToVisibilityConvert" />
- <converter:BooleanToBitmapImageConvert x:Key="BooleanToBitmapImageConvert" />
- <converter:IsNullToVisibilityConvert x:Key="IsNullToVisibilityConvert" />
- <converter:StringToVisibilityConvert x:Key="StringToVisibilityConvert" />
- <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
- <converter:ScrOffectToOpacityConvert x:Key="ScrOffectToOpacityConvert" />
- <ControlTemplate x:Key="t1">
- <Canvas >
- <Canvas Background="Transparent" Canvas.Left="{Binding Position.X}" Canvas.Top="{Binding Position.Y}" Width="255" Height="209">
- <Canvas.RenderTransform>
- <TranslateTransform X="-127.5" Y="-184" />
- </Canvas.RenderTransform>
- <Image Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/TrackBackground.png" Width="255" Height="184"/>
- <TextBlock Canvas.Left="80" Canvas.Top="40" Text="{Binding}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"/>
- <Rectangle Canvas.Left="75" Canvas.Top="83" Fill="#6AAAF5" Width="24" Height="14" RadiusX="7" RadiusY="7"/>
- <TextBlock Canvas.Left="109" Canvas.Top="71" Text="{Binding DataPoint.Y,StringFormat={}{0:00.00}}" FontWeight="Bold" Foreground="#0B0B0B" FontSize="26"/>
- <TextBlock Canvas.Left="100" Canvas.Top="115" FontWeight="Medium" Foreground="#707070" FontSize="16">
- <Run Text="{DynamicResource 0348}"/><Run Text="/℃"/>
- </TextBlock>
- <Image Panel.ZIndex="5" Canvas.Left="102" Canvas.Top="157" Width="50" Height="50" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/RadImage.png"/>
- </Canvas>
- </Canvas>
- </ControlTemplate>
- <ControlTemplate x:Key="t2">
- <Canvas >
- <Canvas Background="Transparent" Canvas.Left="{Binding Position.X}" Canvas.Top="{Binding Position.Y}" Width="255" Height="209">
- <Canvas.RenderTransform>
- <TranslateTransform X="-127.5" Y="-184" />
- </Canvas.RenderTransform>
- <Image Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/TrackBackground.png" Width="255" Height="184"/>
- <TextBlock Canvas.Left="80" Canvas.Top="40" Text="{Binding}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"/>
- <Rectangle Canvas.Left="95" Canvas.Top="83" Fill="#9D77EE" Width="24" Height="14" RadiusX="7" RadiusY="7"/>
- <TextBlock Canvas.Left="129" Canvas.Top="71" Text="{Binding DataPoint.Y,StringFormat={}{0:00}}" FontWeight="Bold" Foreground="#0B0B0B" FontSize="26"/>
- <TextBlock Canvas.Left="88" Canvas.Top="115" FontWeight="Medium" Foreground="#707070" FontSize="16">
- <Run Text="{DynamicResource 0349}"/><Run Text="/mbar"/>
- </TextBlock>
- <Image Panel.ZIndex="5" Canvas.Left="102" Canvas.Top="157" Width="50" Height="50" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/RadImage2.png"/>
- </Canvas>
- </Canvas>
- </ControlTemplate>
- <ControlTemplate x:Key="t3">
- <Canvas >
- <Canvas Background="Transparent" Canvas.Left="{Binding Position.X}" Canvas.Top="{Binding Position.Y}" Width="255" Height="209">
- <Canvas.RenderTransform>
- <TranslateTransform X="-127.5" Y="-184" />
- </Canvas.RenderTransform>
- <Image Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/TrackBackground.png" Width="255" Height="184"/>
- <TextBlock Canvas.Left="80" Canvas.Top="40" Text="{Binding}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"/>
- <Rectangle Canvas.Left="75" Canvas.Top="83" Fill="#A9C9EE" Width="24" Height="14" RadiusX="7" RadiusY="7"/>
- <TextBlock Canvas.Left="109" Canvas.Top="71" Text="{Binding DataPoint.Y,StringFormat={}{0:00.00}}" FontWeight="Bold" Foreground="#0B0B0B" FontSize="26"/>
- <TextBlock Canvas.Left="100" Canvas.Top="115" FontWeight="Medium" Foreground="#707070" FontSize="16">
- <Run Text="{DynamicResource 0348}"/><Run Text="/℃"/>
- </TextBlock>
- <Image Panel.ZIndex="5" Canvas.Left="102" Canvas.Top="157" Width="50" Height="50" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/RadImage3.png"/>
- </Canvas>
- </Canvas>
- </ControlTemplate>
- <ControlTemplate x:Key="t4">
- <Canvas >
- <Canvas Background="Transparent" Canvas.Left="{Binding Position.X}" Canvas.Top="{Binding Position.Y}" Width="255" Height="209">
- <Canvas.RenderTransform>
- <TranslateTransform X="-127.5" Y="-184" />
- </Canvas.RenderTransform>
- <Image Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/TrackBackground.png" Width="255" Height="184"/>
- <TextBlock Canvas.Left="80" Canvas.Top="40" Text="{Binding}" FontWeight="Medium" Foreground="#4D4D4D" FontSize="16"/>
- <Rectangle Canvas.Left="95" Canvas.Top="83" Fill="#C5AFF4" Width="24" Height="14" RadiusX="7" RadiusY="7"/>
- <TextBlock Canvas.Left="129" Canvas.Top="71" Text="{Binding DataPoint.Y,StringFormat={}{0:00}}" FontWeight="Bold" Foreground="#0B0B0B" FontSize="26"/>
- <TextBlock Canvas.Left="88" Canvas.Top="115" FontWeight="Medium" Foreground="#707070" FontSize="16">
- <Run Text="{DynamicResource 0349}"/><Run Text="/mbar"/>
- </TextBlock>
- <Image Panel.ZIndex="5" Canvas.Left="102" Canvas.Top="157" Width="50" Height="50" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/RadImage4.png"/>
- </Canvas>
- </Canvas>
- </ControlTemplate>
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle Margin="2" StrokeDashArray="1 2" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" SnapsToDevicePixels="true" StrokeThickness="1"/>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD"/>
- <SolidColorBrush x:Key="Button.Static.Border" Color="#FF707070"/>
- <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
- <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
- <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
- <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
- <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
- <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
- <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
- <SolidColorBrush x:Key="ListBox.Static.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Static.Border" Color="#FFABADB3"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="ListBox.Disabled.Border" Color="#FFD9D9D9"/>
- <SolidColorBrush x:Key="OptionMark.Static.Background" Color="#FFFFFFFF"/>
- <SolidColorBrush x:Key="OptionMark.Static.Border" Color="#FF707070"/>
- <SolidColorBrush x:Key="OptionMark.Static.Glyph" Color="#FF212121"/>
- <SolidColorBrush x:Key="OptionMark.MouseOver.Background" Color="#FFF3F9FF"/>
- <SolidColorBrush x:Key="OptionMark.MouseOver.Border" Color="#FF5593FF"/>
- <SolidColorBrush x:Key="OptionMark.MouseOver.Glyph" Color="#FF212121"/>
- <SolidColorBrush x:Key="OptionMark.Pressed.Background" Color="#FFD9ECFF"/>
- <SolidColorBrush x:Key="OptionMark.Pressed.Border" Color="#FF3C77DD"/>
- <SolidColorBrush x:Key="OptionMark.Pressed.Glyph" Color="#FF212121"/>
- <SolidColorBrush x:Key="OptionMark.Disabled.Background" Color="#FFE6E6E6"/>
- <SolidColorBrush x:Key="OptionMark.Disabled.Border" Color="#FFBCBCBC"/>
- <SolidColorBrush x:Key="OptionMark.Disabled.Glyph" Color="#FF707070"/>
- <ItemsPanelTemplate x:Key="ItemsPanelHorCenter">
- <StackPanel Orientation="Horizontal" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- <ItemsPanelTemplate x:Key="ItemsPanelHorCenter1">
- <VirtualizingStackPanel Orientation="Horizontal" HorizontalAlignment="Center"/>
- </ItemsPanelTemplate>
- <Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}"/>
- <Setter Property="Foreground" Value="#9B9B9B"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="HorizontalContentAlignment" Value="Center"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Padding" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type Button}">
- <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter Property="Foreground" Value="Black"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ListBoxItemContainerStyleP" TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="24"/>
- <Setter Property="Foreground" Value="#4D4D4D"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <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="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border x:Name="Bd" Margin="16 6 16 0" CornerRadius="8" Width="89" Height="39" SnapsToDevicePixels="true" Background="Transparent">
- <ContentPresenter Margin="0 -4 0 0" HorizontalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="Bd" Property="Background" Value="#1A4D75AC"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="Bd" Property="Background" Value="#1A4D75AC"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ListBoxItemContainerStyleMark" 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 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>
- <ControlTemplate x:Key="ThumbTemplateNew" TargetType="Thumb">
- <Grid>
- <Border x:Name="Bg" CornerRadius="10" Margin="1" SnapsToDevicePixels="True" Background="#C6C6C6"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Background" Value="#C6C6C6" TargetName="Bg"></Setter>
- </Trigger>
- <Trigger Property="IsEnabled" Value="False">
- <Setter Property="Opacity" Value="0.5" TargetName="Bg"></Setter>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <ControlTemplate x:Key="VerticalScrollBarNew" TargetType="{x:Type ScrollBar}">
- <Grid x:Name="VerticalRoot" Height="{TemplateBinding Height}">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <!--外部背景,好像不用更好看-->
- <!--<Border x:Name="Bg" Grid.Row="0" Grid.RowSpan="3" CornerRadius="0" Opacity="0" Background="#858585"/>-->
- <!--内部背景-->
- <Border x:Name="BgInner" Grid.Row="1" Margin="0" CornerRadius="3" SnapsToDevicePixels ="True" Opacity="0.3" Background="Transparent"/>
- <!--上按钮-->
- <!--<Border Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="VerticalSmallDecrease">
- <RepeatButton local:ControlAttachProperty.FIcon="" Style="{StaticResource ScrollBarButton}"
- IsTabStop="False" Interval="50" Margin="0" Command="ScrollBar.LineUpCommand"/>
- </Border>-->
- <!--中间滑动区域-->
- <Track x:Name="PART_Track" IsDirectionReversed="True" Grid.Row="1">
- <Track.Resources>
- <sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarButtonHeightKey}">
- 100
- </sys:Double>
- </Track.Resources>
- <!--上滑块-->
- <Track.DecreaseRepeatButton>
- <RepeatButton x:Name="HorizontalLargeDecrease" Command="ScrollBar.PageUpCommand"
- IsTabStop="False" Interval="50" Style="{DynamicResource ScrollBarTrackButton}" />
- </Track.DecreaseRepeatButton>
- <!--中间滑块-->
- <Track.Thumb>
- <Thumb Template="{StaticResource ThumbTemplateNew}" />
- </Track.Thumb>
- <!--下滑块-->
- <Track.IncreaseRepeatButton>
- <RepeatButton x:Name="HorizontalLargeIncrease" Command="ScrollBar.PageDownCommand" IsTabStop="False" Interval="50" Style="{DynamicResource ScrollBarTrackButton}" />
- </Track.IncreaseRepeatButton>
- </Track>
- <!--下按钮-->
- <!--<Border Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="VerticalSmallIncrease">
- <RepeatButton local:ControlAttachProperty.FIcon="" Style="{StaticResource ScrollBarButton}"
- IsTabStop="False" Interval="50" Margin="0" Command="ScrollBar.LineDownCommand"/>
- </Border>-->
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="BgInner" Property="Opacity" Value="0.5"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- <Style x:Key="DefaultScrollBar1" TargetType="{x:Type ScrollBar}">
- <Setter Property="SnapsToDevicePixels" Value="True" />
- <Setter Property="OverridesDefaultStyle" Value="true" />
- <Style.Triggers>
- <Trigger Property="Orientation" Value="Horizontal">
- <Setter Property="Template" Value="{StaticResource HorizontalScrollBar}" />
- <Setter Property="Height" Value="6" />
- </Trigger>
- <Trigger Property="Orientation" Value="Vertical">
- <Setter Property="Template" Value="{StaticResource VerticalScrollBarNew}" />
- <Setter Property="Width" Value="40" />
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="DefaultScrollViewer1" TargetType="{x:Type ScrollViewer }" >
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ScrollViewer}">
- <Grid x:Name="Grid" Background="{TemplateBinding Background}">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="*" x:Name="leftColumn" />
- <ColumnDefinition Width="Auto" x:Name="rightColumn" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="*" />
- <RowDefinition Height="Auto" />
- </Grid.RowDefinitions>
- <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" CanContentScroll="{TemplateBinding CanContentScroll}"
- CanHorizontallyScroll="False" CanVerticallyScroll="False" ContentTemplate="{TemplateBinding ContentTemplate}"
- Content="{TemplateBinding Content}" Margin="{TemplateBinding Padding}"
- Grid.Row="0" Grid.Column="0" />
- <!--垂直滚动条 -->
- <ScrollBar Style="{StaticResource DefaultScrollBar1}" x:Name="PART_VerticalScrollBar"
- AutomationProperties.AutomationId="VerticalScrollBar"
- ViewportSize="{TemplateBinding ViewportHeight}"
- Cursor="Arrow" Minimum="0" Maximum="{TemplateBinding ScrollableHeight}"
- Orientation="Vertical" Grid.Row="0" Grid.Column="1" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"
- Value="{Binding VerticalOffset, Mode=OneWay, RelativeSource={RelativeSource TemplatedParent}}"/>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxItemContainerStyleAutoPic" TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="16"/>
- <Setter Property="Foreground" Value="#4D4D4D"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <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="Background" Value="Transparent"/>
- <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 Margin="10 0 0 0" Width="59" Height="34" SnapsToDevicePixels="true" Background="Transparent">
- <Border x:Name="Bd" Width="59" Height="34" CornerRadius="6" Background="#F9F9F9" BorderThickness="1" BorderBrush="#C6C6C6">
- <ContentPresenter Margin="0 -1.5 0 0" HorizontalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
- </Border>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="Bd" Property="Background" Value="#4D75AC"/>
- <Setter TargetName="Bd" Property="BorderBrush" Value="#4D75AC"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="White"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsMouseOver" Value="True"/>
- <Condition Property="IsSelected" Value="False"/>
- </MultiTrigger.Conditions>
- <Setter Property="Foreground" Value="#4D75AC"/>
- </MultiTrigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ListBoxStyleAutoPic" TargetType="{x:Type ListBox}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemContainerStyleAutoPic}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0 0 0 0"/>
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxItemContainerStylePic" TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="18"/>
- <Setter Property="Foreground" Value="#4D4D4D"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <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="Background" Value="Transparent"/>
- <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 Margin="-10 0 0 0" x:Name="Bd" Width="81" Height="62" SnapsToDevicePixels="true" >
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PicWellNoSelected.png"/>
- </Canvas.Background>
- <Border Width="81" Height="62">
- <ContentPresenter Margin="0 -3 0 0" HorizontalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
- </Border>
- <!--<ContentPresenter HorizontalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>-->
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PicWellSelected.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>
- <!--<Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="Bd" Property="Background">
- <Setter.Value>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PicWellSelected.png"/>
- </Setter.Value>
- </Setter>
- </Trigger>-->
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="White"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsMouseOver" Value="True"/>
- <Condition Property="IsSelected" Value="False"/>
- </MultiTrigger.Conditions>
- <Setter Property="Foreground" Value="#4D75AC"/>
- </MultiTrigger>
- <!--<Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>-->
- </Style.Triggers>
- </Style>
- <Style x:Key="ListBoxStylePic" TargetType="{x:Type ListBox}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemContainerStylePic}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="10 0 0 0"/>
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxItemContainerStylePage" TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="18"/>
- <Setter Property="Foreground" Value="#7B98C0"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <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="Background" Value="Transparent"/>
- <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}">
- <Border x:Name="bd" Margin="5 0 0 0" Width="41" Height="32" CornerRadius="10" Background="Transparent">
- <ContentPresenter x:Name="content_Text" Margin="0 -3 0 0" HorizontalAlignment="Center" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="Center"/>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="bd" Property="Background" Value="#FDFDFD"/>
- <Setter TargetName="content_Text" Property="TextBlock.Foreground" Value="#4D75AC"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="bd" Property="Background" Value="#FDFDFD"/>
- <Setter TargetName="content_Text" Property="TextBlock.Foreground" Value="#4D75AC"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- <!--<MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsMouseOver" Value="True"/>
- <Condition Property="IsSelected" Value="False"/>
- </MultiTrigger.Conditions>
- <Setter Property="Foreground" Value="#4D75AC"/>
- </MultiTrigger>-->
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- <Style x:Key="ListBoxStylePage" TargetType="{x:Type ListBox}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="0"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemContainerStylePage}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border CornerRadius="10" x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer x:Name="scroll" Focusable="false" Padding="{TemplateBinding Padding}"
- PanningMode="None" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Disabled">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Margin="0 0 5 0"/>
- </ScrollViewer>
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsEnabled" Value="false">
- <Setter Property="Background" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Background}"/>
- <Setter Property="BorderBrush" TargetName="Bd" Value="{StaticResource ListBox.Disabled.Border}"/>
- </Trigger>
- <MultiTrigger>
- <MultiTrigger.Conditions>
- <Condition Property="IsGrouping" Value="true"/>
- <Condition Property="VirtualizingPanel.IsVirtualizingWhenGrouping" Value="false"/>
- </MultiTrigger.Conditions>
- <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
- </MultiTrigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxStyleMarkSetting" TargetType="{x:Type ListBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxItemContainerStyleBigImage" TargetType="{x:Type ListBoxItem}">
- <Setter Property="FontWeight" Value="Medium"/>
- <Setter Property="FontSize" Value="24"/>
- <Setter Property="Foreground" Value="#4D4D4D"/>
- <Setter Property="SnapsToDevicePixels" Value="True"/>
- <Setter Property="Padding" Value="0"/>
- <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="Background" Value="Transparent"/>
- <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 Width="144" Height="144" Margin="10 0 10 0" SnapsToDevicePixels="True" Focusable="False" >
- <Image Canvas.Left="2" Canvas.Top="2" Width="140" Height="140" SnapsToDevicePixels="True" Focusable="False"
- Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PicLoadIcon.png">
- <Image.Clip>
- <RectangleGeometry Rect="0,0,140,140" RadiusX="14" RadiusY="14"/>
- </Image.Clip>
- </Image>
- <Image Canvas.Left="2" Canvas.Top="2" Width="140" Height="140" SnapsToDevicePixels="True" Focusable="False"
- Source="{Binding AllUrl}" >
- <Image.Clip>
- <RectangleGeometry Rect="0,0,140,140" RadiusX="14" RadiusY="14"/>
- </Image.Clip>
- </Image>
- <Rectangle x:Name="_Rectangle" Visibility="Hidden" Width="144" Height="144" StrokeThickness="4" Stroke="#6DA5FF" RadiusX="14" RadiusY="14" />
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter TargetName="_Rectangle" Property="Visibility" Value="Visible"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="_Rectangle" Property="Visibility" Value="Visible"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxStyleBigImage" TargetType="{x:Type ListBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="ItemsPanel" Value="{StaticResource ItemsPanelHorCenter1}"/>
- <Setter Property="ItemContainerStyle" Value="{StaticResource ListBoxItemContainerStyleBigImage}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer x:Name="_ScrollViewer" Focusable="false" Padding="{TemplateBinding Padding}" PanningMode="Both" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Disabled">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="DateListBoxStyle" TargetType="{x:Type ListBox}">
- <Setter Property="Background" Value="{StaticResource ListBox.Static.Background}"/>
- <Setter Property="BorderBrush" Value="{StaticResource ListBox.Static.Border}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/>
- <Setter Property="ScrollViewer.CanContentScroll" Value="true"/>
- <Setter Property="ScrollViewer.PanningMode" Value="Both"/>
- <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
- <Setter Property="VerticalContentAlignment" Value="Center"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="1" SnapsToDevicePixels="true">
- <ScrollViewer Focusable="false" Padding="{TemplateBinding Padding}">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxStyleAlarmSetting" TargetType="{x:Type ListBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer x:Name="_ScrollViewer" Focusable="false" Padding="{TemplateBinding Padding}" PanningMode="Both" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="Left"/>
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxStyleUserBus" TargetType="{x:Type ListBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBox}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="0" SnapsToDevicePixels="true">
- <ScrollViewer x:Name="_ScrollViewer" Focusable="false" Padding="{TemplateBinding Padding}" PanningMode="Both" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto">
- <ItemsPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </ScrollViewer>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CheckBoxStyle1" TargetType="{x:Type CheckBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="{StaticResource OptionMark.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <Canvas Focusable="False" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
- <Rectangle x:Name="rec" IsHitTestVisible="False" Focusable="False" Canvas.Top="15" StrokeThickness="1" Stroke="#9B9B9B" Width="26" Height="26" RadiusX="4" RadiusY="4" Fill="Transparent"/>
- <Image x:Name="image" IsHitTestVisible="False" Visibility="Hidden" Focusable="False" Canvas.Top="15" Width="26" Height="26" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkDefeatIcon.png"/>
- </Canvas>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter Property="Visibility" TargetName="rec" Value="Hidden"/>
- <Setter Property="Visibility" TargetName="image" Value="Visible"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="CheckBoxStyle2" TargetType="{x:Type CheckBox}">
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="{StaticResource OptionMark.Static.Border}"/>
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type CheckBox}">
- <!--<Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Canvas Width="36" Grid.Column="0" Focusable="False" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Height="{TemplateBinding Height}" >
- <Rectangle x:Name="rec" IsHitTestVisible="False" Focusable="False" Canvas.Top="15" StrokeThickness="1" Stroke="#9B9B9B" Width="26" Height="26" RadiusX="4" RadiusY="4" Fill="Transparent"/>
- <Image x:Name="image" IsHitTestVisible="False" Visibility="Hidden" Focusable="False" Canvas.Top="15" Width="26" Height="26" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkDefeatIcon.png"/>
- </Canvas>
- <ContentPresenter Width="100" x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Grid>-->
- <!---->
- <Grid x:Name="templateRoot" Background="Transparent" SnapsToDevicePixels="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
-
- <Canvas Width="31" Grid.Column="0" Focusable="False" Background="{TemplateBinding Background}" SnapsToDevicePixels="True" Height="{TemplateBinding Height}" >
- <Rectangle x:Name="rec" IsHitTestVisible="False" Focusable="False" Canvas.Top="15" StrokeThickness="1" Stroke="#9B9B9B" Width="26" Height="26" RadiusX="4" RadiusY="4" Fill="Transparent"/>
- <Image x:Name="image" IsHitTestVisible="False" Visibility="Hidden" Focusable="False" Canvas.Top="15" Width="26" Height="26" Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkDefeatIcon.png"/>
- </Canvas>
- <ContentPresenter x:Name="contentPresenter" Grid.Column="1" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Grid>
- <ControlTemplate.Triggers>
- <Trigger Property="IsChecked" Value="true">
- <Setter Property="Visibility" TargetName="rec" Value="Hidden"/>
- <Setter Property="Visibility" TargetName="image" Value="Visible"/>
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style x:Key="ListBoxItemContainerTime" 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="HorizontalContentAlignment" Value="{Binding HorizontalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- <Setter Property="VerticalContentAlignment" Value="{Binding VerticalContentAlignment, RelativeSource={RelativeSource AncestorType={x:Type ItemsControl}}}"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="BorderBrush" Value="Transparent"/>
- <Setter Property="BorderThickness" Value="1"/>
- <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="{x:Type ListBoxItem}">
- <Border x:Name="Bd" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" SnapsToDevicePixels="true">
- <ContentPresenter x:Name="hello" ContentStringFormat="{}{0:D2}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- <Style.Triggers>
- <Trigger Property="IsSelected" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter Property="Foreground" Value="#4D75AC"/>
- </Trigger>
- </Style.Triggers>
- </Style>
- </ResourceDictionary>
- </Application.Resources>
- </Application>
|