Skip to content

Commit 04acae4

Browse files
committed
Update Styles.Loading.xaml
1 parent 947a7b3 commit 04acae4

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/WPFDevelopers.Shared/Styles/Styles.Loading.xaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@
1616
<Setter.Value>
1717
<ControlTemplate TargetType="{x:Type controls:NormalLoading}">
1818
<Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}">
19-
<controls:SmallPanel>
20-
<controls:SmallPanel.Resources>
19+
<Grid>
20+
<Grid.Resources>
2121
<Storyboard x:Key="StarStoryboard" RepeatBehavior="Forever">
2222
<DoubleAnimation
2323
Storyboard.TargetName="PART_Ellipse"
2424
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
2525
To="360"
2626
Duration="0:0:1.0" />
2727
</Storyboard>
28-
</controls:SmallPanel.Resources>
28+
</Grid.Resources>
2929
<Ellipse
3030
Width="{TemplateBinding Width}"
3131
Height="{TemplateBinding Height}"
@@ -53,7 +53,7 @@
5353
</EventTrigger>
5454
</Ellipse.Triggers>
5555
</Ellipse>
56-
</controls:SmallPanel>
56+
</Grid>
5757
</Viewbox>
5858
</ControlTemplate>
5959
</Setter.Value>
@@ -74,7 +74,7 @@
7474
<Storyboard x:Key="WD.PlayStoryboard" RepeatBehavior="Forever">
7575
<DoubleAnimation
7676
RepeatBehavior="Forever"
77-
Storyboard.TargetName="PART_SmallPanel"
77+
Storyboard.TargetName="PART_Grid"
7878
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
7979
To="360"
8080
Duration="0:0:0.784" />
@@ -146,10 +146,10 @@
146146
</DoubleAnimationUsingKeyFrames>
147147
</Storyboard>
148148
</ControlTemplate.Resources>
149-
<controls:SmallPanel x:Name="PART_SmallPanel" RenderTransformOrigin=".5,.5">
150-
<controls:SmallPanel.RenderTransform>
149+
<Grid x:Name="PART_Grid" RenderTransformOrigin=".5,.5">
150+
<Grid.RenderTransform>
151151
<RotateTransform />
152-
</controls:SmallPanel.RenderTransform>
152+
</Grid.RenderTransform>
153153
<shapes:Arc
154154
x:Name="PART_Arc"
155155
Width="{TemplateBinding ActualWidth}"
@@ -165,7 +165,7 @@
165165
<RotateTransform />
166166
</shapes:Arc.RenderTransform>
167167
</shapes:Arc>
168-
</controls:SmallPanel>
168+
</Grid>
169169
<ControlTemplate.Triggers>
170170
<EventTrigger RoutedEvent="Loaded">
171171
<BeginStoryboard Storyboard="{StaticResource WD.PlayStoryboard}" />
@@ -190,16 +190,16 @@
190190
<Storyboard x:Key="WD.PlayStoryboard" RepeatBehavior="Forever">
191191
<DoubleAnimation
192192
RepeatBehavior="Forever"
193-
Storyboard.TargetName="PART_SmallPanel"
193+
Storyboard.TargetName="PART_Grid"
194194
Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)"
195195
To="360"
196196
Duration="0:0:0.784" />
197197
</Storyboard>
198198
</ControlTemplate.Resources>
199-
<controls:SmallPanel x:Name="PART_SmallPanel" RenderTransformOrigin=".5,.5">
200-
<controls:SmallPanel.RenderTransform>
199+
<Grid x:Name="PART_Grid" RenderTransformOrigin=".5,.5">
200+
<Grid.RenderTransform>
201201
<RotateTransform />
202-
</controls:SmallPanel.RenderTransform>
202+
</Grid.RenderTransform>
203203
<shapes:Arc
204204
x:Name="PART_Arc"
205205
Width="{TemplateBinding ActualWidth}"
@@ -210,7 +210,7 @@
210210
StartAngle="0"
211211
Stretch="None"
212212
StrokeThickness="0" />
213-
</controls:SmallPanel>
213+
</Grid>
214214
<ControlTemplate.Triggers>
215215
<EventTrigger RoutedEvent="Loaded">
216216
<BeginStoryboard Storyboard="{StaticResource WD.PlayStoryboard}" />

0 commit comments

Comments
 (0)