12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <UserControl x:Class="CyberX8_Themes.UserControls.LockControl"
- 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:CyberX8_Themes.UserControls"
- mc:Ignorable="d" x:Name="self"
- d:DesignHeight="30" d:DesignWidth="30">
- <Grid>
- <Border x:Name="LockBody"
- CornerRadius="1"
- Width="16"
- Height="18" Margin="7,11,7,1" >
- <Border.Style>
- <Style TargetType="Border">
- <Setter Property="Background" Value="LimeGreen"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ElementName=self, Path=IsLocked}" Value="False">
- <Setter Property="Background" Value="red"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Border.Style>
- </Border>
- <Canvas Width="20" Height="20" Margin="4,-2,6,12">
- <Path StrokeThickness="2" HorizontalAlignment="Center" VerticalAlignment="Top" Canvas.Left="5">
- <Path.Style>
- <Style TargetType="Path">
- <Setter Property="Stroke" Value="LimeGreen"/>
- <Setter Property="Canvas.Top" Value="13.875"/>
- <Style.Triggers>
- <DataTrigger Binding="{Binding ElementName=self, Path=IsLocked}" Value="False">
- <Setter Property="Stroke" Value="red"/>
- <Setter Property="Canvas.Top" Value="8.875"/>
- </DataTrigger>
- <DataTrigger Binding="{Binding ElementName=self, Path=IsUpDown}" Value="False">
- <Setter Property="Canvas.Top" Value="5"/>
- </DataTrigger>
- </Style.Triggers>
- </Style>
- </Path.Style>
- <Path.Data>
- <PathGeometry>
- <PathFigure StartPoint="0,0">
- <ArcSegment Point="12,1" Size="3,4" SweepDirection="Clockwise"/>
- <LineSegment Point="12,10" />
- </PathFigure>
- </PathGeometry>
- </Path.Data>
- </Path>
- </Canvas>
- </Grid>
- </UserControl>
|