HandcartBig.xaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <UserControl x:Class="NEIntelligentControl2.Views.BoostStation.HandcartBig"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:NEIntelligentControl2.Views.BoostStation"
  7. mc:Ignorable="d"
  8. Width="23" Height="58.5" Background="{DynamicResource BoostStationBackground}" MouseLeftButtonDown="UserControl_MouseLeftButtonDown" Loaded="UserControl_Loaded">
  9. <Grid>
  10. <Grid.Style>
  11. <Style TargetType="Grid">
  12. <Style.Triggers>
  13. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=IsSelected}" Value="True">
  14. <Setter Property="Effect">
  15. <Setter.Value>
  16. <DropShadowEffect ShadowDepth="0" BlurRadius="9" Color="WhiteSmoke"/>
  17. </Setter.Value>
  18. </Setter>
  19. </DataTrigger>
  20. </Style.Triggers>
  21. </Style>
  22. </Grid.Style>
  23. <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}">
  24. <Viewbox.Style>
  25. <Style TargetType="Viewbox">
  26. <Style.Triggers>
  27. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
  28. <Setter Property="Visibility" Value="Visible"/>
  29. </DataTrigger>
  30. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
  31. <Setter Property="Visibility" Value="Collapsed"/>
  32. </DataTrigger>
  33. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
  34. <Setter Property="Visibility" Value="Collapsed"/>
  35. </DataTrigger>
  36. </Style.Triggers>
  37. </Style>
  38. </Viewbox.Style>
  39. <Canvas Width="14.818" Height="62.064">
  40. <Canvas.RenderTransform>
  41. <TranslateTransform X="-1096.1" Y="-589.33"/>
  42. </Canvas.RenderTransform>
  43. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 642.7 1103.6 650.42 1096.6 642.7" Name="polyline2" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  44. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 636.85 1103.6 644.57 1096.6 636.85" Name="polyline4" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  45. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 605.18 1103.4 597.46 1110.4 605.18" Name="polyline6" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  46. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 598.02 1103.4 590.3 1110.4 598.02" Name="polyline8" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  47. </Canvas>
  48. </Viewbox>
  49. <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}">
  50. <Viewbox.Style>
  51. <Style TargetType="Viewbox">
  52. <Style.Triggers>
  53. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
  54. <Setter Property="Visibility" Value="Visible"/>
  55. </DataTrigger>
  56. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
  57. <Setter Property="Visibility" Value="Collapsed"/>
  58. </DataTrigger>
  59. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
  60. <Setter Property="Visibility" Value="Collapsed"/>
  61. </DataTrigger>
  62. </Style.Triggers>
  63. </Style>
  64. </Viewbox.Style>
  65. <Canvas Width="14.818" Height="62.064">
  66. <Canvas.RenderTransform>
  67. <TranslateTransform X="-1096.1" Y="-589.33"/>
  68. </Canvas.RenderTransform>
  69. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 642.7 1103.6 650.42 1096.6 642.7" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  70. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 636.85 1103.6 644.57 1096.6 636.85" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  71. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 605.18 1103.4 597.46 1110.4 605.18" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  72. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 598.02 1103.4 590.3 1110.4 598.02" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  73. </Canvas>
  74. </Viewbox>
  75. <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}">
  76. <Viewbox.Style>
  77. <Style TargetType="Viewbox">
  78. <Style.Triggers>
  79. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
  80. <Setter Property="Visibility" Value="Visible"/>
  81. </DataTrigger>
  82. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
  83. <Setter Property="Visibility" Value="Collapsed"/>
  84. </DataTrigger>
  85. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
  86. <Setter Property="Visibility" Value="Collapsed"/>
  87. </DataTrigger>
  88. </Style.Triggers>
  89. </Style>
  90. </Viewbox.Style>
  91. <Canvas Width="14.818" Height="62.064">
  92. <Canvas.RenderTransform>
  93. <TranslateTransform X="-1096.1" Y="-589.33"/>
  94. </Canvas.RenderTransform>
  95. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 642.7 1103.6 650.42 1096.6 642.7" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  96. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1110.4 636.85 1103.6 644.57 1096.6 636.85" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  97. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 605.18 1103.4 597.46 1110.4 605.18" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  98. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="1096.6 598.02 1103.4 590.3 1110.4 598.02" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  99. </Canvas>
  100. </Viewbox>
  101. </Grid>
  102. </UserControl>