HandcartSmall.xaml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <UserControl x:Class="NEIntelligentControl2.Views.BoostStation.HandcartSmall"
  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="15" Height="15" MouseLeftButtonDown="UserControl_MouseLeftButtonDown" Background="{DynamicResource BoostStationBackground}" 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 Name="g6" Width="14.809" Height="16.294">
  40. <Canvas.RenderTransform>
  41. <TranslateTransform X="-727.87" Y="-594.66"/>
  42. </Canvas.RenderTransform>
  43. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 610.52 735.19 602.79 742.2 610.52" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  44. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 603.36 735.19 595.63 742.2 603.36" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationUndefined}" StrokeMiterLimit="10"/>
  45. </Canvas>
  46. </Viewbox>
  47. <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}">
  48. <Viewbox.Style>
  49. <Style TargetType="Viewbox">
  50. <Style.Triggers>
  51. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
  52. <Setter Property="Visibility" Value="Visible"/>
  53. </DataTrigger>
  54. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
  55. <Setter Property="Visibility" Value="Collapsed"/>
  56. </DataTrigger>
  57. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
  58. <Setter Property="Visibility" Value="Collapsed"/>
  59. </DataTrigger>
  60. </Style.Triggers>
  61. </Style>
  62. </Viewbox.Style>
  63. <Canvas Width="14.809" Height="16.294">
  64. <Canvas.RenderTransform>
  65. <TranslateTransform X="-727.87" Y="-594.66"/>
  66. </Canvas.RenderTransform>
  67. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 610.52 735.19 602.79 742.2 610.52" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  68. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 603.36 735.19 595.63 742.2 603.36" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOn}" StrokeMiterLimit="10"/>
  69. </Canvas>
  70. </Viewbox>
  71. <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}">
  72. <Viewbox.Style>
  73. <Style TargetType="Viewbox">
  74. <Style.Triggers>
  75. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="0">
  76. <Setter Property="Visibility" Value="Visible"/>
  77. </DataTrigger>
  78. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="1">
  79. <Setter Property="Visibility" Value="Collapsed"/>
  80. </DataTrigger>
  81. <DataTrigger Binding="{Binding RelativeSource={RelativeSource AncestorType={x:Type UserControl}, Mode=FindAncestor}, Path=Value}" Value="-1">
  82. <Setter Property="Visibility" Value="Collapsed"/>
  83. </DataTrigger>
  84. </Style.Triggers>
  85. </Style>
  86. </Viewbox.Style>
  87. <Canvas Width="14.809" Height="16.294">
  88. <Canvas.RenderTransform>
  89. <TranslateTransform X="-727.87" Y="-594.66"/>
  90. </Canvas.RenderTransform>
  91. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 610.52 735.19 602.79 742.2 610.52" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  92. <Polyline xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Points="728.36 603.36 735.19 595.63 742.2 603.36" FillRule="NonZero" StrokeThickness="1.3" Stroke="{DynamicResource BoostStationOff}" StrokeMiterLimit="10"/>
  93. </Canvas>
  94. </Viewbox>
  95. </Grid>
  96. </UserControl>