| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375 |
- <metro:Flyout
- x:Class="SHJX.Service.Main.Views.Sidebar.OperateMedicine"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:metro="http://metro.mahapps.com/winfx/xaml/controls"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:pu="clr-namespace:Panuon.UI.Silver;assembly=Panuon.UI.Silver"
- d:DesignHeight="400"
- d:DesignWidth="300"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Background="#6452A4"
- FontSize="15"
- Header="其他操作"
- Position="Right"
- mc:Ignorable="d">
- <!--#region 资源文件-->
- <metro:Flyout.Resources>
- <!--#region 刷新按钮样式-->
- <Style x:Key="FocusVisual">
- <Setter Property="Control.Template">
- <Setter.Value>
- <ControlTemplate>
- <Rectangle
- Margin="2"
- SnapsToDevicePixels="true"
- Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"
- StrokeDashArray="1 2"
- StrokeThickness="1" />
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <SolidColorBrush x:Key="Button.Static.Background" Color="#FFDDDDDD" />
- <SolidColorBrush x:Key="Button.Static.Border" Color="Transparent" />
- <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" />
- <Style x:Key="ButtonStyle_User_Frush" TargetType="{x:Type Button}">
- <Setter Property="FocusVisualStyle" Value="{StaticResource FocusVisual}" />
- <Setter Property="Background" Value="{StaticResource Button.Static.Background}" />
- <Setter Property="BorderBrush" Value="{StaticResource Button.Static.Border}" />
- <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" />
- <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"
- Margin="{TemplateBinding Padding}"
- HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
- VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
- Focusable="False"
- RecognizesAccessKey="True"
- SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsDefaulted" Value="true">
- <Setter TargetName="border" Property="BorderBrush" Value="{DynamicResource {x:Static SystemColors.HighlightBrushKey}}" />
- </Trigger>
- <Trigger Property="IsMouseOver" Value="true">
- <Setter TargetName="border" Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsPressed" Value="true">
- <Setter TargetName="border" Property="Background" Value="Transparent" />
- </Trigger>
- <Trigger Property="IsEnabled" Value="false">
- <Setter TargetName="border" Property="Background" Value="{StaticResource Button.Disabled.Background}" />
- <Setter TargetName="border" Property="BorderBrush" Value="{StaticResource Button.Disabled.Border}" />
- <Setter TargetName="contentPresenter" Property="TextElement.Foreground" Value="{StaticResource Button.Disabled.Foreground}" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <!--#endregion-->
- <Style x:Key="BtnInfoStyle" TargetType="Button">
- <Setter Property="Width" Value="70" />
- <Setter Property="Height" Value="25" />
- <Setter Property="Foreground" Value="White" />
- <Setter Property="BorderThickness" Value="0" />
- <Setter Property="Background" Value="#1296db" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Button">
- <Border
- x:Name="border"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- CornerRadius="45"
- SnapsToDevicePixels="True">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="24"
- Foreground="{TemplateBinding Foreground}"
- Text="{TemplateBinding Content}" />
- </Border>
- <ControlTemplate.Triggers>
- <Trigger Property="IsMouseOver" Value="True">
- <Setter TargetName="border" Property="Background" Value="#87CEFA" />
- </Trigger>
- <Trigger Property="IsPressed" Value="True">
- <Setter TargetName="border" Property="Background" Value="#87CEFA" />
- </Trigger>
- </ControlTemplate.Triggers>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </metro:Flyout.Resources>
- <!--#endregion-->
- <StackPanel>
- <Grid Margin="5">
- <UniformGrid Margin="40,0" Rows="5">
- <!--<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="是否润洗:" />
- <CheckBox
- x:Name="CbWash"
- Height="50"
- HorizontalAlignment="Left"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- Cursor="Hand"
- IsChecked="{Binding WhetherWash, Mode=OneWayToSource}" />
- </StackPanel>-->
- <StackPanel VerticalAlignment="Center" Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="锁定屏幕:" />
- <CheckBox
- Height="50"
- HorizontalAlignment="Left"
- pu:CheckBoxHelper.BoxHeight="16"
- pu:CheckBoxHelper.BoxWidth="24"
- pu:CheckBoxHelper.CheckBoxStyle="Switch"
- pu:CheckBoxHelper.CheckedBackground="#6452A4"
- Command="{Binding LockDestCommand}"
- Cursor="Hand"
- IsChecked="{Binding WhetherLockMain, Mode=OneWayToSource}" />
- </StackPanel>
- <StackPanel
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="通信端口:" />
- <TextBlock
- Margin="0,0,20,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="16"
- FontWeight="Black"
- Foreground="White"
- Text="{Binding ClientName}" />
- </StackPanel>
- <StackPanel
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="连接状态:" />
- <pu:Badge
- Height="32"
- Margin="0,0,5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{Binding PortClientFill}"
- IsWaving="{Binding PortClientState}" />
- <Button
- Width="25"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="Transparent"
- Command="{Binding FreshClientCommand}"
- Cursor="Hand"
- RenderTransformOrigin="0.5,0.5"
- Style="{DynamicResource ButtonStyle_User_Frush}">
- <Image
- Width="24"
- Height="24"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="/SHJX.Service.Resource;component/Assets/Photos/Cycle.png" />
- <Button.RenderTransform>
- <RotateTransform x:Name="clientTrans" Angle="0" />
- </Button.RenderTransform>
- <Button.Triggers>
- <EventTrigger RoutedEvent="Button.Click">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- RepeatBehavior="1x"
- Storyboard.TargetName="clientTrans"
- Storyboard.TargetProperty="Angle"
- From="0"
- To="-540"
- Duration="0:0:1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Button.Triggers>
- </Button>
- </StackPanel>
- <StackPanel
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="监测状态:" />
- <pu:Badge
- Height="32"
- Margin="0,0,5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{Binding CameraClientFill}"
- IsWaving="{Binding CameraClientState}" />
- <pu:Badge
- Height="32"
- Margin="0,0,5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{Binding CameraClientFill2}"
- IsWaving="{Binding CameraClientState2}" />
- <Button
- Width="25"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="Transparent"
- Command="{Binding FreshCameraCommand}"
- Cursor="Hand"
- RenderTransformOrigin="0.5,0.5"
- Style="{DynamicResource ButtonStyle_User_Frush}">
- <Image
- Width="24"
- Height="24"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="/SHJX.Service.Resource;component/Assets/Photos/Cycle.png" />
- <Button.RenderTransform>
- <RotateTransform x:Name="cameraTrans" Angle="0" />
- </Button.RenderTransform>
- <Button.Triggers>
- <EventTrigger RoutedEvent="Button.Click">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- RepeatBehavior="1x"
- Storyboard.TargetName="cameraTrans"
- Storyboard.TargetProperty="Angle"
- From="0"
- To="-540"
- Duration="0:0:1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Button.Triggers>
- </Button>
- </StackPanel>
- <StackPanel
- HorizontalAlignment="Left"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <TextBlock
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- FontSize="18"
- FontWeight="Bold"
- Foreground="White"
- Text="温度设置:" />
- <pu:Badge
- Height="32"
- Margin="0,0,5,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="{Binding TemperatureSettingFill}"
- IsWaving="{Binding TemperatureSettingState}" />
- <Button
- Width="25"
- Height="25"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Background="Transparent"
- Command="{Binding ReSettingTemperatureCommand}"
- Cursor="Hand"
- RenderTransformOrigin="0.5,0.5"
- Style="{DynamicResource ButtonStyle_User_Frush}">
- <Image
- Width="24"
- Height="24"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Source="/SHJX.Service.Resource;component/Assets/Photos/Cycle.png" />
- <Button.RenderTransform>
- <RotateTransform x:Name="temperatureTrans" Angle="0" />
- </Button.RenderTransform>
- <Button.Triggers>
- <EventTrigger RoutedEvent="Button.Click">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- RepeatBehavior="1x"
- Storyboard.TargetName="temperatureTrans"
- Storyboard.TargetProperty="Angle"
- From="0"
- To="-540"
- Duration="0:0:1" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Button.Triggers>
- </Button>
- </StackPanel>
- </UniformGrid>
- </Grid>
- </StackPanel>
- </metro:Flyout>
|