App.axaml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <Application xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="TestRepeat.App"
  4. xmlns:local="using:TestRepeat"
  5. RequestedThemeVariant="Default">
  6. <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
  7. <Application.DataTemplates>
  8. <local:ViewLocator/>
  9. </Application.DataTemplates>
  10. <Application.Styles>
  11. <FluentTheme />
  12. <Style Selector="TextBlock">
  13. <Setter Property="Background" Value="Bisque"/>
  14. </Style>
  15. <Style Selector="TextBlock.AnimatedTB">
  16. <Style.Animations>
  17. <Animation Duration="0:0:3" IterationCount="INFINITE" PlaybackDirection="Alternate" Easing="BounceEaseIn">
  18. <KeyFrame Cue="0%">
  19. <Setter Property="FontSize" Value="12"/>
  20. </KeyFrame>
  21. <KeyFrame Cue="100%">
  22. <Setter Property="FontSize" Value="48"/>
  23. </KeyFrame>
  24. </Animation>
  25. </Style.Animations>
  26. </Style>
  27. </Application.Styles>
  28. </Application>