<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:CircleProgress}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:CircleProgress}">
                    <Grid>
                        <!-- 背景环：强制显示 -->
                        <Path x:Name="PART_BackgroundPath" 
                          Stroke="#dcd8d8" 
                          StrokeThickness="8"/>

                        <!-- 进度环：确保 Stroke 不为空 -->
                        <Path x:Name="PART_ProgressPath" 
                          Stroke="#4caaf7"
                          StrokeThickness="8" 
                          StrokeStartLineCap="Flat"
                          StrokeEndLineCap="Flat"/>

                        <TextBlock x:Name="PART_PercentageText"
                               HorizontalAlignment="Center" 
                               VerticalAlignment="Center" 
                               FontSize="9" 
                               FontWeight="Bold"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>