|
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:CBR.Components.Controls"
>
<Style x:Key="{x:Type local:WaitSpin}" TargetType="{x:Type local:WaitSpin}">
<Setter Property="Visibility" Value="Hidden" />
<Setter Property="EllipseFill">
<Setter.Value>
<RadialGradientBrush>
<GradientStop Color="#FFFFDF59"/>
<GradientStop Color="#00000000" Offset="1"/>
</RadialGradientBrush>
</Setter.Value>
</Setter>
<Setter Property="EllipseStroke" Value="#00000000" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type local:WaitSpin}">
<Grid>
<Grid.Resources>
<Storyboard x:Key="PART_LoadingAnimation" x:Name="PART_LoadingAnimation" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse2" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse3" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse4" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse5" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse6" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse7" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="0.66"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0.33"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse8" Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00" Value="0.655"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.33"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.6000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:00.8000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.2000000" Value="0"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.4000000" Value="1"/>
<SplineDoubleKeyFrame KeyTime="00:00:01.6000000" Value="0.66"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Grid.Resources>
<Grid VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<Grid Height="90" Width="90" VerticalAlignment="Center" HorizontalAlignment="Center">
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" VerticalAlignment="Top" HorizontalAlignment="Center" Width="20" Height="20" x:Name="ellipse1" Opacity="1" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" Height="20" VerticalAlignment="Top" HorizontalAlignment="Right" Width="20" Margin="0,10,10,0" x:Name="ellipse2" Opacity="0" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" Height="20" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,0,0" Width="20" x:Name="ellipse3" Opacity="0" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" HorizontalAlignment="Right" Margin="0,0,10,10" Width="20" VerticalAlignment="Bottom" Height="20" x:Name="ellipse4" Opacity="0" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" HorizontalAlignment="Center" Margin="0,0,0,0" Width="20" Height="20" VerticalAlignment="Bottom" x:Name="ellipse5" Opacity="0" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" Margin="10,0,0,10" Height="20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="20" x:Name="ellipse6" Opacity="0" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" Margin="0,0,0,0" Height="20" VerticalAlignment="Center" HorizontalAlignment="Left" Width="20" x:Name="ellipse7" Opacity="0.33" />
<Ellipse Stroke="{TemplateBinding EllipseStroke}" Fill="{TemplateBinding EllipseFill}" Margin="10,10,0,0" Height="20" VerticalAlignment="Top" HorizontalAlignment="Left" Width="20" x:Name="ellipse8" Opacity="0.66" />
</Grid>
</Grid>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
WPF and MVVM fan, I practice C # in all its forms from the beginning of the NET Framework without mentioning C ++ / MFC and other software packages such as databases, ASP, WCF, Web & Windows services, Application, and now Core and UWP.
In my wasted hours, I am guilty of having fathered C.B.R. and its cousins C.B.R. for WinRT and UWP on the Windows store.
But apart from that, I am a great handyman ... the house, a rocket stove to heat the jacuzzi and the last one: a wood oven for pizza, bread, and everything that goes inside
https://guillaumewaser.wordpress.com/
https://fouretcompagnie.wordpress.com/