<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <!--通用窗体背景-->
    <Style x:Key="bg"  TargetType="Grid">
        <Setter Property="Background">
            <Setter.Value>
                <ImageBrush ImageSource="pack://siteoforigin:,,,/Resources/bg.png"/>
            </Setter.Value>
        </Setter>
    </Style>

    <Style x:Key="ProgressBarStyle" TargetType="ProgressBar">
        <Setter Property="Background" Value="LightGray"></Setter>
        <Setter Property="Orientation" Value="Horizontal"></Setter>
        <Setter Property="BorderThickness" Value="0" />

        <Setter Property="FontSize" Value="20"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="ProgressBar">
                    <Grid>
                        <!--背景框-->
                        <Rectangle x:Name="BacRec" Margin="{TemplateBinding Padding}" VerticalAlignment="Stretch" Height="Auto" StrokeThickness="0" Stroke="#FF7C8C9A" RadiusX="8" RadiusY="8" Fill="{TemplateBinding Background}" />
                        <!--进度低槽     不要改这个DockPanel的名字-->
                        <DockPanel x:Name="PART_Track"  LastChildFill="false">
                            <!--进度填充条     不要改这个Rec的名字-->
                            <Rectangle  x:Name="PART_Indicator" Margin="0" RadiusX="{Binding ElementName=BacRec,Path=RadiusX}" RadiusY="{Binding ElementName=BacRec,Path=RadiusY}">
                                <Rectangle.Fill>
                                    <!--想要啥颜色 自己设置好了-->
                                    <LinearGradientBrush StartPoint="0,0" EndPoint="1,0.5">
                                        <GradientStop Color="#98e9f6" Offset="0.0"></GradientStop>
                                        <GradientStop  Color="#2790b6" Offset="1.0"></GradientStop>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </DockPanel>
                        <!--边缘的一像素高光-->
                        <Rectangle Margin="0" Height="Auto" Stroke="#33d37128" Opacity="0.25" />
                        <!--<TextBlock Text="{TemplateBinding local:MyProcessBar.Text}" Foreground="{DynamicResource ForeBrush}" HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="10"/>-->
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <!--<Style x:Key="ProgressBarStyle" TargetType="{x:Type ProgressBar}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ProgressBar}">
                    <Grid>
                        --><!--背景框--><!--
                        <Rectangle Margin="0" VerticalAlignment="Stretch" Height="Auto" StrokeThickness="1" Stroke="#FF7C8C9A" RadiusX="8" RadiusY="8">
                            <Rectangle.Fill>
                                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                    <GradientStop Color="Red" Offset="0"/>
                                    <GradientStop Color="Yellow" Offset="1"/>
                                </LinearGradientBrush>
                            </Rectangle.Fill>
                        </Rectangle>
                        --><!--进度低槽     不要改这个DockPanel的名字--><!--
                        <DockPanel x:Name="PART_Track" Margin="1" LastChildFill="false">
                            --><!--进度填充条     不要改这个Rec的名字--><!--
                            <Rectangle  x:Name="PART_Indicator" RadiusX="8" RadiusY="8">
                                <Rectangle.Fill>
                                    <LinearGradientBrush Opacity="0.8" EndPoint="0.5,1" StartPoint="0.5,0">
                                        <GradientStop Color="#FFF3FFA7" Offset="0.075"/>
                                        <GradientStop Color="#FFADDA4F" Offset="0.8"/>
                                        <GradientStop Color="#FFCFEC31" Offset="0.129"/>
                                        <GradientStop Color="#FF8AC118" Offset="0.871"/>
                                        <GradientStop Color="#FFA8DC3B" Offset="1"/>
                                    </LinearGradientBrush>
                                </Rectangle.Fill>
                            </Rectangle>
                        </DockPanel>


                        --><!--边缘的一像素高光--><!--
                        <Rectangle Margin="1" Height="Auto" Stroke="White" Opacity="0.25" RadiusX="8" RadiusY="8"/>
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        --><!--垂直方向的进度条--><!--
        <Style.Triggers>
            <Trigger Property="Orientation" Value="Vertical">
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="{x:Type ProgressBar}">
                            <Grid>
                                --><!--背景框--><!--
                                <DockPanel x:Name="PART_Track" Margin="1,0,1,1" LastChildFill="false">
                                    <Decorator x:Name="PART_Indicator" DockPanel.Dock="Bottom">
                                        <Rectangle >
                                            <Rectangle.LayoutTransform>
                                                <RotateTransform Angle="-90"/>
                                            </Rectangle.LayoutTransform>
                                            <Rectangle.Fill>
                                                <LinearGradientBrush Opacity="0.5" EndPoint="0.5,1" StartPoint="0.5,0">
                                                    <GradientStop Color="#9cd7f3" Offset="0.075"/>
                                                    <GradientStop Color="#1492cc" Offset="0.8"/>
                                                    <GradientStop Color="#60c4f3" Offset="0.106"/>
                                                    <GradientStop Color="#109cdd" Offset="0.871"/>
                                                    <GradientStop Color="#7cb7d2" Offset="1"/>
                                                </LinearGradientBrush>
                                            </Rectangle.Fill>
                                        </Rectangle>
                                    </Decorator>
                                </DockPanel>
                                --><!--边缘的一像素高光--><!--
                                <Rectangle Margin="1" Height="Auto" Stroke="White" Opacity="0.25"/>
                            </Grid>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Trigger>
        </Style.Triggers>
    </Style>-->


</ResourceDictionary>