| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <Window x:Class="ivf_tl_Manage.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:custom="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:ivf_tl_Manage"
- xmlns:localEntity="clr-namespace:ivf_tl_Entity.Entity;assembly=ivf_tl_Entity" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:userControl="clr-namespace:ivf_tl_Manage.UserControls" xmlns:viewModels="clr-namespace:ivf_tl_Manage.ViewModels"
- xmlns:views="clr-namespace:ivf_tl_Manage.Views" Title="MainWindow"
- Width="1920" Height="1080"
- FontFamily="{StaticResource sourceHan}"
- WindowState="Maximized" WindowStyle="None"
- mc:Ignorable="d">
- <!--38、19-->
- <Canvas x:Name="MainCanvas" Width="1920" Height="1080" Background="#4D75AC">
- <StackPanel Canvas.Left="15" Height="65" VerticalAlignment="Center" Orientation="Horizontal">
- <Image x:Name="MainLogoImg" Canvas.Left="15" Canvas.Top="23"
- Height="38"
- />
- <TextBlock x:Name="TextBlock_CurrentTime" Canvas.Left="161"
- Canvas.Top="16" Margin="20,0,0,0"
- VerticalAlignment="Center" FontSize="20"
- FontWeight="Medium" Foreground="White"
- Text="2024-12-02 14:58" />
- <Rectangle Canvas.Left="337" Canvas.Top="20"
- Width="2" Height="25"
- Margin="8,0,8,0" Fill="White"
- Opacity="0.3" RadiusX="1"
- RadiusY="1" />
- <TextBlock VerticalAlignment="Center" FontSize="20" FontWeight="Medium" Foreground="White">
- <Run Text="{DynamicResource 0249}" /><Run Text=": " />
- </TextBlock>
- <custom:Carousel Canvas.Left="439" Canvas.Top="20"
- Height="23.5" VerticalAlignment="Center"
- AutoRun="True" IsCenter="True"
- ItemsSource="{Binding EnvironmentTemperatureList}">
- <custom:Carousel.ItemTemplate>
- <DataTemplate DataType="localEntity:EnvironmentTemperatureEntity">
- <StackPanel Width="auto" Height="23.5" Orientation="Horizontal">
- <TextBlock VerticalAlignment="Center" Focusable="False"
- FontSize="20" Foreground="White"
- Text="{Binding temperature, StringFormat={}{0:F2}℃}"
- TextAlignment="Center" />
- <TextBlock Margin="8,0,0,0" VerticalAlignment="Center"
- Focusable="False" FontSize="16"
- Foreground="White"
- Text="{Binding collectName, StringFormat={}({0:F2})}"
- TextAlignment="Center"
- Visibility="{Binding collectName, Converter={StaticResource ObjectToVisibilityConvert}}" />
- </StackPanel>
- </DataTemplate>
- </custom:Carousel.ItemTemplate>
- <!--<StackPanel Orientation="Horizontal" Width="auto" Height="23.5" >
- <TextBlock Focusable="False" Foreground="White" Text="37.00℃" FontSize="20" VerticalAlignment="Center" TextAlignment="Center"/>
- <TextBlock Focusable="False" Foreground="White" Margin="8 0 0 0" Text="(NEO-1-20240101)" FontSize="16" VerticalAlignment="Center" TextAlignment="Center"/>
- </StackPanel>-->
- </custom:Carousel>
- </StackPanel>
- <Button x:Name="chLan" Visibility="Hidden" Width="100" Height="60" Canvas.Left="800" Content="中文" Click="Button_Click"/>
- <Button x:Name="enLan" Visibility="Hidden" Width="100" Height="60" Canvas.Left="950" Content="英文" Click="Button_Click1"/>
- <Button x:Name="upLan" Visibility="Hidden" Height="60" Canvas.Left="1100" Content="更新多语言配置文件(仅外网可用)" Click="Button_Click2"/>
- <StackPanel Canvas.Left="1590" Canvas.Top="21" Orientation="Horizontal" Background="Transparent"
- MouseDown="StackPanel_MouseDown"
- >
- <Image Width="24" Height="24"
- Source="/Resources/Images/DownLoadIcon.png"
- />
- <Border Canvas.Left="1611" Canvas.Top="12"
- Margin="-3.5 -20 0 0"
- Height="20" Padding="6,0,6,2"
- Background="#DE5755" CornerRadius="10"
- Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}">
- <TextBlock Margin="-1 -1.8 0 0" Canvas.Left="150" Canvas.Top="15"
- FontSize="14" Foreground="White"
- Text="{Binding DownLoadFileCount}"
- TextAlignment="Center" />
- </Border>
- </StackPanel>
- <!--<Image Canvas.Left="1590" Canvas.Top="21"
- Width="24" Height="24"
- Source="/Resources/Images/DownLoadIcon.png"
- Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}" />
- <Border Canvas.Left="1611" Canvas.Top="12"
- Height="20" Padding="6,0,6,2"
- Background="#DE5755" CornerRadius="10"
- Visibility="{Binding DownLoadFileCount, Converter={StaticResource Int0ToHiddenConvert}}">
- <TextBlock Canvas.Left="150" Canvas.Top="15"
- FontSize="14" Foreground="White"
- Text="{Binding DownLoadFileCount}"
- TextAlignment="Center" />
- </Border>-->
- <Canvas x:Name="Canvas_User" Canvas.Left="1644"
- Canvas.Top="2" Width="190"
- Height="62" MouseEnter="Canvas_User_MouseEnter"
- MouseLeave="Canvas_User_MouseLeave">
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/UserNameBox.png" />
- </Canvas.Background>
- <Image x:Name="Image_User" Canvas.Left="30"
- Canvas.Top="17" Width="28"
- Height="28" IsHitTestVisible="False"
- Source="/Resources/Images/UserHeadshot.png" />
- <TextBlock x:Name="TextBlock_User" Canvas.Left="63"
- Canvas.Top="21" Width="96"
- Height="23" FontSize="14"
- FontWeight="Medium" Foreground="#003177"
- IsHitTestVisible="False">
- <Run Text="{DynamicResource 0248}" /><Run Text="{Binding UserInfo.username, StringFormat={},{0}}" />
- </TextBlock>
- <!--<Canvas.ToolTip >
- <ToolTip x:Name="ToolTip_PassButton" Placement="Bottom" HorizontalOffset="0" VerticalOffset="0" HasDropShadow="false" BorderThickness="0" Padding="0">
- <custom:ImageCustom Width="191" Height="86"
- IconSource="{Binding ElementName=ToolTip_PassButton,Path=IsMouseOver,Converter={StaticResource BooleanToBitmapImageConvert},ConverterParameter=PassWord}"/>
- </ToolTip>
- </Canvas.ToolTip>-->
- </Canvas>
- <Rectangle Canvas.Left="1844" Canvas.Top="20"
- Width="2" Height="25"
- Fill="White" Opacity="0.3"
- RadiusX="1" RadiusY="1" />
- <custom:ButtonImage Canvas.Left="1846" Canvas.Top="0"
- Width="74" Height="65"
- Click="Min_Click" IconSource="/Resources/Images/MinButtonIcon.png"
- MouseOverIconSource="/Resources/Images/MinButtonMouseOverIcon.png" />
- <Popup x:Name="Popup_EditPassWord" Panel.ZIndex="2"
- AllowsTransparency="True" MouseLeave="Popup_EditPassWord_MouseLeave"
- Placement="Bottom"
- PlacementTarget="{Binding ElementName=Canvas_User}"
- PopupAnimation="Slide" StaysOpen="True">
- <Canvas Width="190" Height="86">
- <Canvas.Background>
- <ImageBrush ImageSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordBackground.png" />
- </Canvas.Background>
- <custom:ButtonLeftImageBorder Canvas.Left="20" Canvas.Top="20"
- Width="151" Height="46"
- Background="#f6f6f6" Click="Password_Click"
- Content="{DynamicResource 0220}"
- FontSize="16" FontWeight="Medium"
- Foreground="#707070" IconHeight="26"
- IconMargin="10 10 5 10" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordIcon.png"
- IconWidth="26" MouseOverBackground="#ECEEF2"
- MouseOverForeground="#4D75AC" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PasswordMouseOverIcon.png" />
- </Canvas>
- <!--<custom:ImageCustom Width="191" Height="86"
- IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditPassWordIcon.png"
- MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/EditPassWordMouseOverIcon.png"
- MouseDown="ImageCustom_MouseDown"/>-->
- </Popup>
- <custom:RadioButtonNoFrame x:Name="_dev_RadioButton" Canvas.Left="0"
- Canvas.Top="59" Width="90"
- Height="92" CheckImageSource="/Resources/Images/DevManageSelected.png"
- Checked="DevManage_Checked" FontSize="10"
- FontWeight="Medium" Foreground="#E5E5E5"
- IsChecked="True" NoCheckImageSource="/Resources/Images/DevManageNoSelected.png"
- PreviewMouseDown="DevManage_PreviewMouseDown" TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0001}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="146"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/DishRecordCheckIcon.png" Checked="DishRecord_Checked"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5"
- IsChecked="{Binding DishRecordChecked}"
- NoCheckImageSource="/Resources/Images/DishRecordNoCheckIcon.png" TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0002}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="233"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/HouseHistoryCheckIcon.png" Checked="BinSetting_Checked"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5"
- IsChecked="{Binding HouseChartChecked}"
- NoCheckImageSource="/Resources/Images/HouseHistoryNoCheckIcon.png" TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0003}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="320"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/AppErrorCheckIcon.png" Checked="AlarmHistory_Checked"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5"
- IsChecked="{Binding AlarmHistoryChecked}"
- NoCheckImageSource="/Resources/Images/AppErrorNoCheckIcon.png" TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0004}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="407"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/AlarmCheckIcon.png" Checked="AlarmSetting_CheckedNew"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5" NoCheckImageSource="/Resources/Images/AlarmNoCheckIcon.png"
- TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0005}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="494"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/MarkSettingCheckIcon.png" Checked="MarkSetting_Checked"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5" NoCheckImageSource="/Resources/Images/MarkSettingIcon.png"
- TextBlock.TextAlignment="Center"
- TextString="{DynamicResource 0006}"
- TextThickness="0 0 0 20" TextWrapp="Wrap" />
- <!--<custom:RadioButtonNoFrame Canvas.Left="0" Canvas.Top="594"
- TextWrapp="Wrap" FontSize="10"
- TextBlock.TextAlignment="Center" TextThickness="0 0 0 10"
- FontWeight="Medium" Foreground="#E5E5E5" TextString="{DynamicResource 0007}"
- Width="90" Height="92"
- CheckImageSource="/Resources/Images/AppSettingCheckIcon.png"
- NoCheckImageSource="/Resources/Images/AppSettingNoCheckIcon.png"
- Checked="RadioButtonNoFrame_Checked"/>-->
- <custom:ButtonBottomImage Canvas.Left="0" Canvas.Top="978"
- Width="90" Height="92"
- Click="Exit_Click"
- Content="{DynamicResource 0008}"
- EnabledForeground="White" EnabledIconSource="/Resources/Images/ExitAppIcon.png"
- FontSize="10" FontWeight="Medium"
- Foreground="#E5E5E5" IconHeight="92"
- IconMargin="0 -60 0 0" IconSource="/Resources/Images/ExitAppIcon.png"
- IconWidth="90" MouseOverForeground="White"
- MouseOverIconSource="/Resources/Images/ExitAppIconMouseOverIcon.png" TextWrapp="Wrap" />
- <!--<custom:ButtonImage Canvas.Left="0" Canvas.Top="978" Width="90" Height="92"
- IconSource="/Resources/Images/ExitAppIcon.png" Click="Exit_Click"
- MouseOverIconSource="/Resources/Images/ExitAppIconMouseOverIcon.png"/>-->
- <Canvas Canvas.Left="90" Canvas.Top="65" Width="1830" Height="1015">
- <Canvas.Background>
- <ImageBrush ImageSource="/Resources/Images/MainBorderBackground.png" />
- </Canvas.Background>
- <ContentControl x:Name="ContentControl_Main" Content="{Binding CurrentViewModle}" />
- </Canvas>
- <Grid x:Name="_mask" Width="1920"
- Height="1080" Background="#66000000"
- Visibility="{Binding MaskVisibility, Converter={StaticResource BooleanToVisibilityConverter}}" />
- </Canvas>
- </Window>
|