<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:MegaRobo.C00225155App.MenuViews.Bottles">


    <Style TargetType="{x:Type local:CTIndicator}">
        <Setter Property="Background" Value="Transparent"/>
        <Setter Property="BorderBrush" Value="Transparent"/>
        <Setter Property="BorderThickness" Value="1"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:CTIndicator}">
                    <Grid>
                        <!-- 背景环 -->
                        <Path x:Name="PART_BackgroundPath" 
                              Stroke="#dcd8d8"
                              StrokeThickness="{TemplateBinding RingThickness}"
                              StrokeStartLineCap="Flat"
                              StrokeEndLineCap="Flat"/>

                        <!-- 进度环 -->
                        <Path x:Name="PART_ProgressPath"
                               Stroke="#f1a03b"
                              StrokeThickness="{TemplateBinding RingThickness}"
                              StrokeStartLineCap="Flat"
                              StrokeEndLineCap="Flat"/>

                        <!-- CT值文本 -->
                        <TextBlock x:Name="PART_CTText"
                                   HorizontalAlignment="Center"
                                   VerticalAlignment="Center"
                                   FontWeight="Normal"
                                   TextAlignment="Center"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>