|
16 | 16 | <Setter.Value> |
17 | 17 | <ControlTemplate TargetType="{x:Type controls:NormalLoading}"> |
18 | 18 | <Viewbox Width="{TemplateBinding Width}" Height="{TemplateBinding Height}"> |
19 | | - <controls:SmallPanel> |
20 | | - <controls:SmallPanel.Resources> |
| 19 | + <Grid> |
| 20 | + <Grid.Resources> |
21 | 21 | <Storyboard x:Key="StarStoryboard" RepeatBehavior="Forever"> |
22 | 22 | <DoubleAnimation |
23 | 23 | Storyboard.TargetName="PART_Ellipse" |
24 | 24 | Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" |
25 | 25 | To="360" |
26 | 26 | Duration="0:0:1.0" /> |
27 | 27 | </Storyboard> |
28 | | - </controls:SmallPanel.Resources> |
| 28 | + </Grid.Resources> |
29 | 29 | <Ellipse |
30 | 30 | Width="{TemplateBinding Width}" |
31 | 31 | Height="{TemplateBinding Height}" |
|
53 | 53 | </EventTrigger> |
54 | 54 | </Ellipse.Triggers> |
55 | 55 | </Ellipse> |
56 | | - </controls:SmallPanel> |
| 56 | + </Grid> |
57 | 57 | </Viewbox> |
58 | 58 | </ControlTemplate> |
59 | 59 | </Setter.Value> |
|
74 | 74 | <Storyboard x:Key="WD.PlayStoryboard" RepeatBehavior="Forever"> |
75 | 75 | <DoubleAnimation |
76 | 76 | RepeatBehavior="Forever" |
77 | | - Storyboard.TargetName="PART_SmallPanel" |
| 77 | + Storyboard.TargetName="PART_Grid" |
78 | 78 | Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" |
79 | 79 | To="360" |
80 | 80 | Duration="0:0:0.784" /> |
|
146 | 146 | </DoubleAnimationUsingKeyFrames> |
147 | 147 | </Storyboard> |
148 | 148 | </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> |
151 | 151 | <RotateTransform /> |
152 | | - </controls:SmallPanel.RenderTransform> |
| 152 | + </Grid.RenderTransform> |
153 | 153 | <shapes:Arc |
154 | 154 | x:Name="PART_Arc" |
155 | 155 | Width="{TemplateBinding ActualWidth}" |
|
165 | 165 | <RotateTransform /> |
166 | 166 | </shapes:Arc.RenderTransform> |
167 | 167 | </shapes:Arc> |
168 | | - </controls:SmallPanel> |
| 168 | + </Grid> |
169 | 169 | <ControlTemplate.Triggers> |
170 | 170 | <EventTrigger RoutedEvent="Loaded"> |
171 | 171 | <BeginStoryboard Storyboard="{StaticResource WD.PlayStoryboard}" /> |
|
190 | 190 | <Storyboard x:Key="WD.PlayStoryboard" RepeatBehavior="Forever"> |
191 | 191 | <DoubleAnimation |
192 | 192 | RepeatBehavior="Forever" |
193 | | - Storyboard.TargetName="PART_SmallPanel" |
| 193 | + Storyboard.TargetName="PART_Grid" |
194 | 194 | Storyboard.TargetProperty="(UIElement.RenderTransform).(RotateTransform.Angle)" |
195 | 195 | To="360" |
196 | 196 | Duration="0:0:0.784" /> |
197 | 197 | </Storyboard> |
198 | 198 | </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> |
201 | 201 | <RotateTransform /> |
202 | | - </controls:SmallPanel.RenderTransform> |
| 202 | + </Grid.RenderTransform> |
203 | 203 | <shapes:Arc |
204 | 204 | x:Name="PART_Arc" |
205 | 205 | Width="{TemplateBinding ActualWidth}" |
|
210 | 210 | StartAngle="0" |
211 | 211 | Stretch="None" |
212 | 212 | StrokeThickness="0" /> |
213 | | - </controls:SmallPanel> |
| 213 | + </Grid> |
214 | 214 | <ControlTemplate.Triggers> |
215 | 215 | <EventTrigger RoutedEvent="Loaded"> |
216 | 216 | <BeginStoryboard Storyboard="{StaticResource WD.PlayStoryboard}" /> |
|
0 commit comments