BusSettingWindow.xaml 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <Window x:Class="ivf_tl_Manage.Win.BusSettingWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:ivf_tl_Manage.Win"
  7. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  8. xmlns:controls="clr-namespace:ivf_tl_Manage.UserControls"
  9. mc:Ignorable="d"
  10. FontFamily="{StaticResource sourceHan}"
  11. WindowStyle="None"
  12. ShowInTaskbar="False"
  13. WindowStartupLocation="CenterOwner"
  14. Background="Transparent"
  15. AllowsTransparency="True"
  16. Width="710" Height="644"
  17. x:Name="_BusSettingWindow">
  18. <Canvas Width="710" Height="644">
  19. <Canvas.Background>
  20. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/BusSettingWindowBackground.png"/>
  21. </Canvas.Background>
  22. <DockPanel Canvas.Left="60" Canvas.Top="57">
  23. <TextBlock Margin="2 0 2 2" DockPanel.Dock="Top" x:Name="_title_TextBlock" Canvas.Left="60" Canvas.Top="57" Text="胚胎操作业务功能关联" FontWeight="Medium" Foreground="Black" FontSize="20"/>
  24. <Rectangle DockPanel.Dock="Bottom" Canvas.Left="58" Canvas.Top="90" Width="205" Height="3" Fill="#4D75AC" RadiusX="1.5" RadiusY="1.5"/>
  25. </DockPanel>
  26. <!--<TextBlock x:Name="_title_TextBlock1" Canvas.Left="60" Canvas.Top="57" Text="胚胎操作业务功能关联" FontWeight="Medium" Foreground="Black" FontSize="20"/>
  27. <Rectangle Canvas.Left="58" Canvas.Top="90" Width="205" Height="2" Fill="#4D75AC" RadiusX="1" RadiusY="1"/>-->
  28. <customControl:ImageCustom Canvas.Left="634" Canvas.Top="60" Width="18" Height="18" MouseUp="Cancel_MouseUp"
  29. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CloseGrayIcon.png"
  30. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CloseBlueIcon.png"/>
  31. <TextBlock Canvas.Left="60" Canvas.Top="107" Text="{DynamicResource 0308}" FontWeight="Medium" Foreground="#707070" FontSize="16"/>
  32. <Border Canvas.Left="60" Canvas.Top="139" Width="280" Height="365" CornerRadius="6" BorderThickness="1" BorderBrush="#C6C6C6">
  33. <ListBox Style="{StaticResource ListBoxStyleAlarmSetting}" Margin="15 0 30 0" ItemsSource="{Binding ElementName=_BusSettingWindow,Path=NoSelectedBus}"
  34. BorderThickness="0" Background="Transparent">
  35. <ListBox.ItemContainerStyle>
  36. <Style TargetType="{x:Type ListBoxItem}">
  37. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  38. <Setter Property="Template">
  39. <Setter.Value>
  40. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  41. <customControl:CheckBoxContent Margin="0 15 0 0" Height="20" Padding="0 0 10 0" Checked="CheckBoxContent_Checked"
  42. TextCntent="{Binding name}" Tag="{Binding}" FontWeight="Medium" FontSize="16" Foreground="#4D4D4D"
  43. CheckImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/MarkDefeatIcon.png">
  44. <customControl:CheckBoxContent.Content>
  45. <Rectangle Width="20" Height="20" StrokeThickness="1" Stroke="#9B9B9B" RadiusX="2" RadiusY="2"/>
  46. </customControl:CheckBoxContent.Content>
  47. </customControl:CheckBoxContent>
  48. </ControlTemplate>
  49. </Setter.Value>
  50. </Setter>
  51. </Style>
  52. </ListBox.ItemContainerStyle>
  53. </ListBox>
  54. </Border>
  55. <TextBlock Canvas.Left="370" Canvas.Top="107" Text="{DynamicResource 0309}" FontWeight="Medium" Foreground="#707070" FontSize="16"/>
  56. <Border Canvas.Left="369" Canvas.Top="139" Width="280" Height="365" CornerRadius="6" BorderThickness="1" BorderBrush="#C6C6C6">
  57. <ListBox Style="{StaticResource ListBoxStyleAlarmSetting}" Margin="15 0 30 0" ItemsSource="{Binding ElementName=_BusSettingWindow,Path=SelectedBus}"
  58. BorderThickness="0" Background="Transparent">
  59. <ListBox.ItemContainerStyle>
  60. <Style TargetType="{x:Type ListBoxItem}">
  61. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  62. <Setter Property="Template">
  63. <Setter.Value>
  64. <ControlTemplate TargetType="{x:Type ListBoxItem}">
  65. <customControl:CheckBoxContent Margin="0 15 0 0" IsChecked="True" Height="20" Padding="0 0 10 0" TextCntent="{Binding name}" Tag="{Binding}" FontSize="16" Foreground="#4D4D4D" BorderBrush="{Binding state,Converter={StaticResource DishInfoForegroundConver},ConverterParameter=funcSelected}" CheckImageSource="{Binding state,Converter={StaticResource CustomButtonMouseOverIconConvert},ConverterParameter=funcSelected}" Unchecked="CheckBoxContent_Unchecked">
  66. <customControl:CheckBoxContent.Content>
  67. <Rectangle Width="20" Height="20" StrokeThickness="1" Stroke="#9B9B9B" RadiusX="2" RadiusY="2"/>
  68. </customControl:CheckBoxContent.Content>
  69. </customControl:CheckBoxContent>
  70. </ControlTemplate>
  71. </Setter.Value>
  72. </Setter>
  73. </Style>
  74. </ListBox.ItemContainerStyle>
  75. </ListBox>
  76. </Border>
  77. <customControl:ButtonCornerRadius IsTabStop="False" Canvas.Left="554" Canvas.Top="536" Width="104" Height="56" Click="Ok_Click" IsDefault="True" Content="{DynamicResource 0024}" FontSize="14" MarginMask="10">
  78. <customControl:ButtonCornerRadius.Background>
  79. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonIcon1.png"/>
  80. </customControl:ButtonCornerRadius.Background>
  81. </customControl:ButtonCornerRadius>
  82. <customControl:ButtonCornerRadius IsTabStop="False" Canvas.Left="446" Canvas.Top="536" Width="104" Height="56" Click="Cancel_Click" IsCancel="True" Content="{DynamicResource 0025}" Foreground="#717171" FontSize="14" MarginMask="10">
  83. <customControl:ButtonCornerRadius.Background>
  84. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonIcon1.png"/>
  85. </customControl:ButtonCornerRadius.Background>
  86. </customControl:ButtonCornerRadius>
  87. <!--<customControl:ButtonImage IsTabStop="False" Canvas.Left="446" Canvas.Top="536" Width="104" Height="56" Click="Cancel_Click" IsCancel="True" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/CancelButtonMouseOverIcon.png"/>-->
  88. <!--<customControl:ButtonImage IsTabStop="False" Canvas.Left="554" Canvas.Top="536" Width="104" Height="56" Click="Ok_Click" IsDefault="True" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/OkButtonMouseOverIcon.png"/>-->
  89. </Canvas>
  90. </Window>