Checkbox.xaml 1.8 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="Checkbox"
  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:my="clr-namespace:pcl"
  7. mc:Ignorable="d"
  8. d:DesignHeight="33" d:DesignWidth="103" MinWidth="20" MinHeight="20" Background="#00000000" Foreground="#FF323232" FontSize="13">
  9. <Grid HorizontalAlignment="Left" MinHeight="18" MaxHeight="18" MinWidth="20" Name="panMain" Opacity="0.8">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="18" />
  12. <ColumnDefinition Width="Auto" />
  13. </Grid.ColumnDefinitions>
  14. <Label Name="label" Grid.Column="1" Padding="0" Margin="8,0,0,0" VerticalContentAlignment="Center" Height="18" VerticalAlignment="Top" BorderBrush="Black" Content="Checkbox" Foreground="{Binding RelativeSource={RelativeSource Self}, Path=Parent.Parent.Foreground}" FontFamily="{Binding RelativeSource={RelativeSource Self}, Path=Parent.Parent.FontFamily}" FontSize="13" />
  15. <Border BorderBrush="#FF333333" BorderThickness="2" Height="18" HorizontalAlignment="Left" Name="border" VerticalAlignment="Top" Width="18" CornerRadius="1">
  16. <Grid Height="14" Name="Check" Width="14">
  17. <Image Height="14" Name="imgBlack" Source="/pcl;component/Images/Checked-Black.png" Width="14" />
  18. <Image Height="14" Name="imgBlue" Source="/pcl;component/Images/Checked-Blue.png" Width="14" Opacity="0" />
  19. <Image Height="14" Name="imgGray" Source="/pcl;component/Images/Checked-Gray.png" Width="14" Opacity="0" />
  20. </Grid>
  21. </Border>
  22. </Grid>
  23. </UserControl>