<UserControl x:Class="HistoryDLL.DetailViewerDot"
             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:HistoryDLL"
             Width="20" Height="30">
    <UserControl.Resources>
        <Style TargetType="{x:Type Label}" x:Key="uxImgCircleStyle">
            <Setter Property="Template">
                <Setter.Value>
                    <ControlTemplate>
                        <Grid x:Name="uxMainGd" Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Background="Transparent">
                            <Control x:Name="Proxy" Background="{TemplateBinding Background}" />
                            <Rectangle x:Name="uxCircle" IsEnabled="False" Width="10" Height="10" StrokeThickness="1" Fill="Transparent" Stroke="{TemplateBinding Background}"></Rectangle>
                        </Grid>
                        <ControlTemplate.Triggers>
                            <Trigger Property="IsEnabled" Value="True">
                                <Setter TargetName="uxCircle" Property="Fill" Value="{Binding Path=Background, ElementName=Proxy}"/>
                            </Trigger>
                        </ControlTemplate.Triggers>
                    </ControlTemplate>
                </Setter.Value>
            </Setter>
        </Style>
    </UserControl.Resources>
    <Label x:Name="uxLabel" Style="{StaticResource uxImgCircleStyle}" IsEnabled="True" Background="White">

    </Label>
</UserControl>
