123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 |
- <UserControl x:Class="NEIntelligentControl2.Views.BoostStation.Switch"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:NEIntelligentControl2.Views.BoostStation"
- mc:Ignorable="d"
- Width="18" Height="23.4" Background="{DynamicResource BoostStationBackground}" MouseLeftButtonDown="UserControl_MouseLeftButtonDown" Loaded="UserControl_Loaded">
- <Grid>
- <Grid.Style>
- <Style TargetType="Grid">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=IsSelected}" Value="True">
- <Setter Property="Effect">
- <Setter.Value>
- <DropShadowEffect ShadowDepth="0" BlurRadius="9" Color="WhiteSmoke"/>
- </Setter.Value>
- </Setter>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Grid.Style>
- <Viewbox Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Width}" Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Height}" x:Name="vd">
- <Viewbox.Style>
- <Style TargetType="Viewbox">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
- <Setter Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Viewbox.Style>
- <Canvas Name="cd" Width="17.266" Height="22.442">
- <Canvas.RenderTransform>
- <TranslateTransform X="-1010.2" Y="-646.02"/>
- </Canvas.RenderTransform>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1010.2" Y1="647.27" X2="1027.5" Y2="647.27" Name="line2" StrokeThickness="2.5" Stroke="DarkGray" StrokeMiterLimit="10"/>
- <Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Fill="DarkGray">
- <Path.Data>
- <PathGeometry Figures="m1016.8 663.86c0-1.421 1.156-2.576 2.569-2.576 1.423 0 2.574 1.157 2.574 2.576s-1.158 2.57-2.574 2.57c-1.417 4e-3 -2.569-1.151-2.569-2.57m-2.029 0c0 2.543 2.061 4.604 4.604 4.604s4.604-2.062 4.604-4.604c0-2.544-2.063-4.605-4.604-4.605-2.548 0-4.604 2.061-4.604 4.605z" FillRule="NonZero"/>
- </Path.Data>
- </Path>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1025.8" Y1="649.43" X2="1018.9" Y2="660.25" Name="line6" StrokeThickness="2" Stroke="DarkGray" StrokeMiterLimit="10"/>
- </Canvas>
- </Viewbox>
- <Viewbox Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Width}" Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Height}" x:Name="vg">
- <Viewbox.Style>
- <Style TargetType="Viewbox">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
- <Setter Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Viewbox.Style>
- <Canvas Name="cg" Width="17.266" Height="22.442">
- <Canvas.RenderTransform>
- <TranslateTransform X="-1010.2" Y="-646.02"/>
- </Canvas.RenderTransform>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1010.2" Y1="647.27" X2="1027.5" Y2="647.27" StrokeThickness="2.5" Stroke="#FF1B9D3A" StrokeMiterLimit="10"/>
- <Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Fill="#FF1B9D3A">
- <Path.Data>
- <PathGeometry Figures="m1016.8 663.86c0-1.421 1.156-2.576 2.569-2.576 1.423 0 2.574 1.157 2.574 2.576s-1.158 2.57-2.574 2.57c-1.417 4e-3 -2.569-1.151-2.569-2.57m-2.029 0c0 2.543 2.061 4.604 4.604 4.604s4.604-2.062 4.604-4.604c0-2.544-2.063-4.605-4.604-4.605-2.548 0-4.604 2.061-4.604 4.605z" FillRule="NonZero"/>
- </Path.Data>
- </Path>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1025.8" Y1="649.43" X2="1018.9" Y2="660.25" StrokeThickness="2" Stroke="#FF1B9D3A" StrokeMiterLimit="10"/>
- </Canvas>
- </Viewbox>
- <Viewbox Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Width}" Height="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Height}" x:Name="vr">
- <Viewbox.Style>
- <Style TargetType="Viewbox">
- <Style.Triggers>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
- <Setter Property="Visibility" Value="Visible"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
- <Setter Property="Visibility" Value="Collapsed"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Viewbox.Style>
- <Canvas Name="cr" Width="3.4" Height="4.3442">
- <Canvas.RenderTransform>
- <TranslateTransform X="-1248.5" Y="-178.76"/>
- </Canvas.RenderTransform>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1248.5" Y1="179" X2="1251.9" Y2="179" StrokeThickness=".4883" Stroke="#FFA61F24" StrokeMiterLimit="1.9531"/>
- <Path xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Fill="#FFA61F24">
- <Path.Data>
- <PathGeometry Figures="m1250.2 181.7c0.3 0 0.5 0.2 0.5 0.5s-0.2 0.5-0.5 0.5-0.5-0.2-0.5-0.5 0.2-0.5 0.5-0.5m0-0.4c-0.5 0-0.9 0.4-0.9 0.9s0.4 0.9 0.9 0.9 0.9-0.4 0.9-0.9-0.4-0.9-0.9-0.9z" FillRule="NonZero"/>
- </Path.Data>
- </Path>
- <Line xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" X1="1250.2" Y1="179" X2="1250.2" Y2="181.5" StrokeThickness=".3906" Stroke="#FFA61F24" StrokeMiterLimit="1.9531"/>
- </Canvas>
- </Viewbox>
- </Grid>
- </UserControl>
|