Normal.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:UI="clr-namespace:CustomUI">
  4. <ControlTemplate x:Key="Normal"
  5. TargetType="{x:Type UI:Loading}">
  6. <Grid x:Name="PART_Root" Background="{TemplateBinding Background}">
  7. <Grid.Resources>
  8. <Style TargetType="{x:Type Ellipse}">
  9. <Setter Property="RenderTransformOrigin" Value="0.5,0.5"/>
  10. <Setter Property="Width" Value="5"/>
  11. <Setter Property="Height" Value="5"/>
  12. <Setter Property="RenderTransform">
  13. <Setter.Value>
  14. <ScaleTransform ScaleX="0" ScaleY="0"/>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. </Grid.Resources>
  19. <Grid.ColumnDefinitions>
  20. <ColumnDefinition/>
  21. <ColumnDefinition/>
  22. <ColumnDefinition/>
  23. <ColumnDefinition/>
  24. <ColumnDefinition/>
  25. </Grid.ColumnDefinitions>
  26. <Grid.RowDefinitions>
  27. <RowDefinition/>
  28. <RowDefinition/>
  29. <RowDefinition/>
  30. <RowDefinition/>
  31. <RowDefinition/>
  32. </Grid.RowDefinitions>
  33. <Ellipse Grid.Row="0" Grid.Column="2" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse0" Fill="{TemplateBinding Foreground}"/>
  34. <Ellipse Grid.Row="0" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse1" Fill="{TemplateBinding Foreground}"/>
  35. <Ellipse Grid.Row="2" Grid.Column="4" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse2" Fill="{TemplateBinding Foreground}"/>
  36. <Ellipse Grid.Row="3" Grid.Column="3" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse3" Fill="{TemplateBinding Foreground}"/>
  37. <Ellipse Grid.Row="4" Grid.Column="2" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse4" Fill="{TemplateBinding Foreground}"/>
  38. <Ellipse Grid.Row="3" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse5" Fill="{TemplateBinding Foreground}"/>
  39. <Ellipse Grid.Row="2" Grid.Column="0" Grid.RowSpan="1" Grid.ColumnSpan="1" x:Name="PART_Ellipse6" Fill="{TemplateBinding Foreground}"/>
  40. <Ellipse Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2" x:Name="PART_Ellipse7" Fill="{TemplateBinding Foreground}"/>
  41. <VisualStateManager.VisualStateGroups>
  42. <VisualStateGroup x:Name="ActiveStates">
  43. <VisualState x:Name="Inactive" />
  44. <VisualState x:Name="Active">
  45. <Storyboard SpeedRatio="{TemplateBinding SpeedRatio}">
  46. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.000" Storyboard.TargetName="PART_Ellipse0" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  47. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  48. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  49. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  50. </DoubleAnimationUsingKeyFrames>
  51. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.100" Storyboard.TargetName="PART_Ellipse1" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  52. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  53. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  54. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  55. </DoubleAnimationUsingKeyFrames>
  56. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.200" Storyboard.TargetName="PART_Ellipse2" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  57. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  58. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  59. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  60. </DoubleAnimationUsingKeyFrames>
  61. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.300" Storyboard.TargetName="PART_Ellipse3" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  62. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  63. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  64. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  65. </DoubleAnimationUsingKeyFrames>
  66. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.400" Storyboard.TargetName="PART_Ellipse4" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  67. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  68. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  69. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  70. </DoubleAnimationUsingKeyFrames>
  71. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.500" Storyboard.TargetName="PART_Ellipse5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  72. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  73. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  74. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  75. </DoubleAnimationUsingKeyFrames>
  76. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.600" Storyboard.TargetName="PART_Ellipse6" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  77. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  78. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  79. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  80. </DoubleAnimationUsingKeyFrames>
  81. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.700" Storyboard.TargetName="PART_Ellipse7" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleX)">
  82. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  83. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  84. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  85. </DoubleAnimationUsingKeyFrames>
  86. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.000" Storyboard.TargetName="PART_Ellipse0" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  87. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  88. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  89. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  90. </DoubleAnimationUsingKeyFrames>
  91. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.100" Storyboard.TargetName="PART_Ellipse1" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  92. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  93. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  94. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  95. </DoubleAnimationUsingKeyFrames>
  96. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.200" Storyboard.TargetName="PART_Ellipse2" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  97. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  98. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  99. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  100. </DoubleAnimationUsingKeyFrames>
  101. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.300" Storyboard.TargetName="PART_Ellipse3" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  102. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  103. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  104. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  105. </DoubleAnimationUsingKeyFrames>
  106. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.400" Storyboard.TargetName="PART_Ellipse4" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  107. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  108. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  109. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  110. </DoubleAnimationUsingKeyFrames>
  111. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.500" Storyboard.TargetName="PART_Ellipse5" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  112. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  113. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  114. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  115. </DoubleAnimationUsingKeyFrames>
  116. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.600" Storyboard.TargetName="PART_Ellipse6" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  117. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  118. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  119. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  120. </DoubleAnimationUsingKeyFrames>
  121. <DoubleAnimationUsingKeyFrames RepeatBehavior="Forever" BeginTime="0:0:0.700" Storyboard.TargetName="PART_Ellipse7" Storyboard.TargetProperty="(UIElement.RenderTransform).(ScaleTransform.ScaleY)">
  122. <LinearDoubleKeyFrame KeyTime="0:0:0.000" Value="0"/>
  123. <LinearDoubleKeyFrame KeyTime="0:0:0.400" Value="1"/>
  124. <LinearDoubleKeyFrame KeyTime="0:0:0.800" Value="0"/>
  125. </DoubleAnimationUsingKeyFrames>
  126. </Storyboard>
  127. </VisualState>
  128. </VisualStateGroup>
  129. </VisualStateManager.VisualStateGroups>
  130. </Grid>
  131. </ControlTemplate>
  132. </ResourceDictionary>