aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.Common/Controls/ProgressRingDouble.xaml
blob: 6466e37e3b2c19f44c17cc7d03397d7cd71b98f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:Tango.FSE.Common.Controls">


    <Style TargetType="{x:Type local:ProgressRingDouble}">
        <Setter Property="Foreground" Value="{StaticResource FSE_PrimaryAccentBrush}" />
        <Setter Property="Background" Value="{StaticResource FSE_PrimaryBackgroundLighterBrush}" />
        <Setter Property="Width" Value="100" />
        <Setter Property="Height" Value="100" />
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:ProgressRingDouble}">
                    <Grid>
                        <local:ProgressRing Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Foreground="{TemplateBinding Background}" Thickness="{TemplateBinding Thickness}" Minimum="0" Maximum="100" Value="99.999999" IsIndeterminate="False" />
                        <local:ProgressRing Width="{TemplateBinding Width}" Height="{TemplateBinding Height}" Foreground="{TemplateBinding Foreground}" Thickness="{TemplateBinding Thickness}" Minimum="{TemplateBinding Minimum}" Maximum="{TemplateBinding Maximum}" Value="{TemplateBinding Value}" IsIndeterminate="{TemplateBinding IsIndeterminate}" />
                    </Grid>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>