ButterflyValve.xaml 1.4 KB

12345678910111213141516171819202122
  1. <UserControl x:Class="CyberX8_Themes.UserControls.ButterflyValve"
  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:CyberX8_Themes.UserControls"
  7. xmlns:converters="clr-namespace:CyberX8_Themes.Converters"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800" x:Name="valve" Cursor="Hand">
  10. <UserControl.Resources>
  11. <converters:BoolToColor3 x:Key="BoolToColor3"/>
  12. </UserControl.Resources>
  13. <UserControl.RenderTransform>
  14. <TransformGroup>
  15. <RotateTransform CenterX="17" CenterY="17" Angle="{Binding ElementName=valve,Path=RotateTransformValue}"/>
  16. </TransformGroup>
  17. </UserControl.RenderTransform>
  18. <Border Width="35" Height="35" CornerRadius="17" Background="{Binding ElementName=valve,Path=IsOpen,Converter={StaticResource BoolToColor3}}" Opacity="0.95" x:Name="border1">
  19. <Path Width="31" Height="10" Fill="Black" Stroke="Black" Stretch="Fill" Data="M213.333333 507.733333h725.333334v42.666667H204.8l145.066667 145.066667-29.866667 29.866666L128 533.333333 320 341.333333l29.866667 29.866667L213.333333 507.733333z"/>
  20. </Border>
  21. </UserControl>