| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:UI="clr-namespace:CustomUI">
- <ControlTemplate x:Key="Normal"
- TargetType="{x:Type UI:Loading}">
- <Grid x:Name="PART_Root" Background="{TemplateBinding Background}">
- <Grid.Resources>
- <Style TargetType="{x:Type Ellipse}">
- <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
- <Setter Property="Width" Value="5"/>
- <Setter Property="Height" Value="5"/>
- <Setter Property="RenderTransform">
- <Setter.Value>
- <ScaleTransform ScaleX="0" ScaleY="0"/>
- </Setter.Value>
- </Setter>
- </Style>
- </Grid.Resources>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Ellipse Grid.Row="0" Grid.Column="2" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse0" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse1" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="2" Grid.Column="4" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse2" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="3" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse3" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="4" Grid.Column="2" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse4" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="3" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse5" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="2" Grid.Column="0" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse6" Fill="{TemplateBinding Foreground}"/>
- <Ellipse Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse7" Fill="{TemplateBinding Foreground}"/>
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="ActiveStates">
- <VisualState x:Name="Inactive" />
- <VisualState x:Name="Active">
- <Storyboard SpeedRatio="{TemplateBinding SpeedRatio}">
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.000" Storyboard.TargetName="PART_Ellipse0" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.100" Storyboard.TargetName="PART_Ellipse1" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.200" Storyboard.TargetName="PART_Ellipse2" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.300" Storyboard.TargetName="PART_Ellipse3" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.400" Storyboard.TargetName="PART_Ellipse4" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.500" Storyboard.TargetName="PART_Ellipse5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.600" Storyboard.TargetName="PART_Ellipse6" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.700" Storyboard.TargetName="PART_Ellipse7" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.000" Storyboard.TargetName="PART_Ellipse0" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.100" Storyboard.TargetName="PART_Ellipse1" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.200" Storyboard.TargetName="PART_Ellipse2" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.300" Storyboard.TargetName="PART_Ellipse3" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.400" Storyboard.TargetName="PART_Ellipse4" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.500" Storyboard.TargetName="PART_Ellipse5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.600" Storyboard.TargetName="PART_Ellipse6" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.700" Storyboard.TargetName="PART_Ellipse7" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
- <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
- <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
- </DoubleAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- </Grid>
- </ControlTemplate>
- </ResourceDictionary>
|