MainWindow.xaml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  1. <Window x:Class="ivf_tl_Manage.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:custom="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:ivf_tl_Manage"
  4. xmlns:localEntity="clr-namespace:ivf_tl_Entity.Entity;assembly=ivf_tl_Entity" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls" xmlns:viewModels="clr-namespace:ivf_tl_Manage.ViewModels"
  6. xmlns:views="clr-namespace:ivf_tl_Manage.Views" Title="MainWindow"
  7. Width="1920" Height="1080"
  8. FontFamily="{StaticResource sourceHan}"
  9. WindowState="Maximized" WindowStyle="None"
  10. mc:Ignorable="d">
  11. <!--38、19-->
  12. <Canvas x:Name="MainCanvas" Width="1920" Height="1080" Background="#4D75AC">
  13. <StackPanel Canvas.Left="15" Height="65" VerticalAlignment="Center" Orientation="Horizontal">
  14. <Image x:Name="MainLogoImg" Canvas.Left="15" Canvas.Top="23"
  15. Height="38"
  16. />
  17. <TextBlock x:Name="TextBlock_CurrentTime" Canvas.Left="161"
  18. Canvas.Top="16" Margin="20,0,0,0"
  19. VerticalAlignment="Center" FontSize="20"
  20. FontWeight="Medium" Foreground="White"
  21. Text="2024-12-02 14:58" />
  22. <Rectangle Canvas.Left="337" Canvas.Top="20"
  23. Width="2" Height="25"
  24. Margin="8,0,8,0" Fill="White"
  25. Opacity="0.3" RadiusX="1"
  26. RadiusY="1" />
  27. <TextBlock VerticalAlignment="Center" FontSize="20" FontWeight="Medium" Foreground="White">
  28. <Run Text="{DynamicResource 0249}" /><Run Text=": " />
  29. </TextBlock>
  30. <custom:Carousel Canvas.Left="439" Canvas.Top="20"
  31. Height="23.5" VerticalAlignment="Center"
  32. AutoRun="True" IsCenter="True"
  33. ItemsSource="{Binding EnvironmentTemperatureList}">
  34. <custom:Carousel.ItemTemplate>
  35. <DataTemplate DataType="localEntity:EnvironmentTemperatureEntity">
  36. <StackPanel Width="auto" Height="23.5" Orientation="Horizontal">
  37. <TextBlock VerticalAlignment="Center" Focusable="False"
  38. FontSize="20" Foreground="White"
  39. Text="{Binding temperature, StringFormat={}{0:F2}℃}"
  40. TextAlignment="Center" />
  41. <TextBlock Margin="8,0,0,0" VerticalAlignment="Center"
  42. Focusable="False" FontSize="16"
  43. Foreground="White"
  44. Text="{Binding collectName, StringFormat={}({0:F2})}"
  45. TextAlignment="Center"
  46. Visibility="{Binding collectName, Converter={StaticResource ObjectToVisibilityConvert}}" />
  47. </StackPanel>
  48. </DataTemplate>
  49. </custom:Carousel.ItemTemplate>
  50. <!--<StackPanel Orientation="Horizontal" Width="auto" Height="23.5" >
  51. <TextBlock Focusable="False" Foreground="White" Text="37.00℃" FontSize="20" VerticalAlignment="Center" TextAlignment="Center"/>
  52. <TextBlock Focusable="False" Foreground="White" Margin="8 0 0 0" Text="(NEO-1-20240101)" FontSize="16" VerticalAlignment="Center" TextAlignment="Center"/>
  53. </StackPanel>-->
  54. </custom:Carousel>
  55. </StackPanel>
  56. <Button x:Name="chLan" Visibility="Hidden" Width="100" Height="60" Canvas.Left="800" Content="中文" Click="Button_Click"/>
  57. <Button x:Name="enLan" Visibility="Hidden" Width="100" Height="60" Canvas.Left="950" Content="英文" Click="Button_Click1"/>
  58. <Button x:Name="upLan" Visibility="Hidden" Height="60" Canvas.Left="1100" Content="更新多语言配置文件(仅外网可用)" Click="Button_Click2"/>
  59. <StackPanel Canvas.Left="1590" Canvas.Top="21" Orientation="Horizontal" Background="Transparent"
  60. MouseDown="StackPanel_MouseDown"
  61. >
  62. <Image Width="24" Height="24"
  63. Source="/Resources/Images/DownLoadIcon.png"
  64. />
  65. <Border Canvas.Left="1611" Canvas.Top="12"
  66. Margin="-3.5 -20 0 0"
  67. Height="20" Padding="6,0,6,2"
  68. Background="#DE5755" CornerRadius="10"
  69. Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}">
  70. <TextBlock Margin="-1 -1.8 0 0" Canvas.Left="150" Canvas.Top="15"
  71. FontSize="14" Foreground="White"
  72. Text="{Binding DownLoadFileCount}"
  73. TextAlignment="Center" />
  74. </Border>
  75. </StackPanel>
  76. <!--<Image Canvas.Left="1590" Canvas.Top="21"
  77. Width="24" Height="24"
  78. Source="/Resources/Images/DownLoadIcon.png"
  79. Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}" />
  80. <Border Canvas.Left="1611" Canvas.Top="12"
  81. Height="20" Padding="6,0,6,2"
  82. Background="#DE5755" CornerRadius="10"
  83. Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}">
  84. <TextBlock Canvas.Left="150" Canvas.Top="15"
  85. FontSize="14" Foreground="White"
  86. Text="{Binding DownLoadFileCount}"
  87. TextAlignment="Center" />
  88. </Border>-->
  89. <Canvas x:Name="Canvas_User" Canvas.Left="1644"
  90. Canvas.Top="2" Width="190"
  91. Height="62" MouseEnter="Canvas_User_MouseEnter"
  92. MouseLeave="Canvas_User_MouseLeave">
  93. <Canvas.Background>
  94. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/UserNameBox.png" />
  95. </Canvas.Background>
  96. <Image x:Name="Image_User" Canvas.Left="30"
  97. Canvas.Top="17" Width="28"
  98. Height="28" IsHitTestVisible="False"
  99. Source="/Resources/Images/UserHeadshot.png" />
  100. <TextBlock x:Name="TextBlock_User" Canvas.Left="63"
  101. Canvas.Top="21" Width="96"
  102. Height="23" FontSize="14"
  103. FontWeight="Medium" Foreground="#003177"
  104. IsHitTestVisible="False">
  105. <Run Text="{DynamicResource 0248}" /><Run Text="{Binding UserInfo.username, StringFormat={},{0}}" />
  106. </TextBlock>
  107. <!--<Canvas.ToolTip >
  108. <ToolTip x:Name="ToolTip_PassButton" Placement="Bottom" HorizontalOffset="0" VerticalOffset="0" HasDropShadow="false" BorderThickness="0" Padding="0">
  109. <custom:ImageCustom Width="191" Height="86"
  110. IconSource="{Binding ElementName=ToolTip_PassButton,Path=IsMouseOver,Converter={StaticResource BooleanToBitmapImageConvert},ConverterParameter=PassWord}"/>
  111. </ToolTip>
  112. </Canvas.ToolTip>-->
  113. </Canvas>
  114. <Rectangle Canvas.Left="1844" Canvas.Top="20"
  115. Width="2" Height="25"
  116. Fill="White" Opacity="0.3"
  117. RadiusX="1" RadiusY="1" />
  118. <custom:ButtonImage Canvas.Left="1846" Canvas.Top="0"
  119. Width="74" Height="65"
  120. Click="Min_Click" IconSource="/Resources/Images/MinButtonIcon.png"
  121. MouseOverIconSource="/Resources/Images/MinButtonMouseOverIcon.png" />
  122. <Popup x:Name="Popup_EditPassWord" Panel.ZIndex="2"
  123. AllowsTransparency="True" MouseLeave="Popup_EditPassWord_MouseLeave"
  124. Placement="Bottom"
  125. PlacementTarget="{Binding ElementName=Canvas_User}"
  126. PopupAnimation="Slide" StaysOpen="True">
  127. <Canvas Width="190" Height="86">
  128. <Canvas.Background>
  129. <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordBackground.png" />
  130. </Canvas.Background>
  131. <custom:ButtonLeftImageBorder Canvas.Left="20" Canvas.Top="20"
  132. Width="151" Height="46"
  133. Background="#f6f6f6" Click="Password_Click"
  134. Content="{DynamicResource 0220}"
  135. FontSize="16" FontWeight="Medium"
  136. Foreground="#707070" IconHeight="26"
  137. IconMargin="10 10 5 10" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordIcon.png"
  138. IconWidth="26" MouseOverBackground="#ECEEF2"
  139. MouseOverForeground="#4D75AC" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordMouseOverIcon.png" />
  140. </Canvas>
  141. <!--<custom:ImageCustom Width="191" Height="86"
  142. IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditPassWordIcon.png"
  143. MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditPassWordMouseOverIcon.png"
  144. MouseDown="ImageCustom_MouseDown"/>-->
  145. </Popup>
  146. <custom:RadioButtonNoFrame x:Name="_dev_RadioButton" Canvas.Left="0"
  147. Canvas.Top="59" Width="90"
  148. Height="92" CheckImageSource="/Resources/Images/DevManageSelected.png"
  149. Checked="DevManage_Checked" FontSize="10"
  150. FontWeight="Medium" Foreground="#E5E5E5"
  151. IsChecked="True" NoCheckImageSource="/Resources/Images/DevManageNoSelected.png"
  152. PreviewMouseDown="DevManage_PreviewMouseDown" TextBlock.TextAlignment="Center"
  153. TextString="{DynamicResource 0001}"
  154. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  155. <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="146"
  156. Width="90" Height="92"
  157. CheckImageSource="/Resources/Images/DishRecordCheckIcon.png" Checked="DishRecord_Checked"
  158. FontSize="10" FontWeight="Medium"
  159. Foreground="#E5E5E5"
  160. IsChecked="{Binding DishRecordChecked}"
  161. NoCheckImageSource="/Resources/Images/DishRecordNoCheckIcon.png" TextBlock.TextAlignment="Center"
  162. TextString="{DynamicResource 0002}"
  163. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  164. <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="233"
  165. Width="90" Height="92"
  166. CheckImageSource="/Resources/Images/HouseHistoryCheckIcon.png" Checked="BinSetting_Checked"
  167. FontSize="10" FontWeight="Medium"
  168. Foreground="#E5E5E5"
  169. IsChecked="{Binding HouseChartChecked}"
  170. NoCheckImageSource="/Resources/Images/HouseHistoryNoCheckIcon.png" TextBlock.TextAlignment="Center"
  171. TextString="{DynamicResource 0003}"
  172. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  173. <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="320"
  174. Width="90" Height="92"
  175. CheckImageSource="/Resources/Images/AppErrorCheckIcon.png" Checked="AlarmHistory_Checked"
  176. FontSize="10" FontWeight="Medium"
  177. Foreground="#E5E5E5"
  178. IsChecked="{Binding AlarmHistoryChecked}"
  179. NoCheckImageSource="/Resources/Images/AppErrorNoCheckIcon.png" TextBlock.TextAlignment="Center"
  180. TextString="{DynamicResource 0004}"
  181. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  182. <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="407"
  183. Width="90" Height="92"
  184. CheckImageSource="/Resources/Images/AlarmCheckIcon.png" Checked="AlarmSetting_CheckedNew"
  185. FontSize="10" FontWeight="Medium"
  186. Foreground="#E5E5E5" NoCheckImageSource="/Resources/Images/AlarmNoCheckIcon.png"
  187. TextBlock.TextAlignment="Center"
  188. TextString="{DynamicResource 0005}"
  189. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  190. <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="494"
  191. Width="90" Height="92"
  192. CheckImageSource="/Resources/Images/MarkSettingCheckIcon.png" Checked="MarkSetting_Checked"
  193. FontSize="10" FontWeight="Medium"
  194. Foreground="#E5E5E5" NoCheckImageSource="/Resources/Images/MarkSettingIcon.png"
  195. TextBlock.TextAlignment="Center"
  196. TextString="{DynamicResource 0006}"
  197. TextThickness="0 0 0 20" TextWrapp="Wrap" />
  198. <!--<custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="594"
  199. TextWrapp="Wrap" FontSize="10"
  200. TextBlock.TextAlignment="Center" TextThickness="0 0 0 10"
  201. FontWeight="Medium" Foreground="#E5E5E5" TextString="{DynamicResource 0007}"
  202. Width="90" Height="92"
  203. CheckImageSource="/Resources/Images/AppSettingCheckIcon.png"
  204. NoCheckImageSource="/Resources/Images/AppSettingNoCheckIcon.png"
  205. Checked="RadioButtonNoFrame_Checked"/>-->
  206. <custom:ButtonBottomImage Canvas.Left="0" Canvas.Top="978"
  207. Width="90" Height="92"
  208. Click="Exit_Click"
  209. Content="{DynamicResource 0008}"
  210. EnabledForeground="White" EnabledIconSource="/Resources/Images/ExitAppIcon.png"
  211. FontSize="10" FontWeight="Medium"
  212. Foreground="#E5E5E5" IconHeight="92"
  213. IconMargin="0 -60 0 0" IconSource="/Resources/Images/ExitAppIcon.png"
  214. IconWidth="90" MouseOverForeground="White"
  215. MouseOverIconSource="/Resources/Images/ExitAppIconMouseOverIcon.png" TextWrapp="Wrap" />
  216. <!--<custom:ButtonImage Canvas.Left="0" Canvas.Top="978" Width="90" Height="92"
  217. IconSource="/Resources/Images/ExitAppIcon.png" Click="Exit_Click"
  218. MouseOverIconSource="/Resources/Images/ExitAppIconMouseOverIcon.png"/>-->
  219. <Canvas Canvas.Left="90" Canvas.Top="65" Width="1830" Height="1015">
  220. <Canvas.Background>
  221. <ImageBrush ImageSource="/Resources/Images/MainBorderBackground.png" />
  222. </Canvas.Background>
  223. <ContentControl x:Name="ContentControl_Main" Content="{Binding CurrentViewModle}" />
  224. </Canvas>
  225. <Grid x:Name="_mask" Width="1920"
  226. Height="1080" Background="#66000000"
  227. Visibility="{Binding MaskVisibility, Converter={StaticResource BooleanToVisibilityConverter}}" />
  228. </Canvas>
  229. </Window>