App.axaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Application xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="AvaloniaApplication2.App"
  4. xmlns:local="using:AvaloniaApplication2"
  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="Aqua"/>
  14. </Style>
  15. <Style Selector="TextBlock.MyTB">
  16. <Setter Property="Background" Value="Bisque"/>
  17. </Style>
  18. <Style Selector="TextBlock.MyTB:pointerover">
  19. <Setter Property="Background" Value="Bisque"/>
  20. <Setter Property="FontSize" Value="48"/>
  21. </Style>
  22. <Style Selector="TextBlock.AnimatedTB">
  23. <Style.Animations>
  24. <Animation Duration="0:0:3" IterationCount="INFINITE" PlaybackDirection="Alternate" Easing="BounceEaseIn">
  25. <KeyFrame Cue="0%">
  26. <Setter Property="FontSize" Value="12"/>
  27. </KeyFrame>
  28. <KeyFrame Cue="100%">
  29. <Setter Property="FontSize" Value="48"/>
  30. </KeyFrame>
  31. </Animation>
  32. </Style.Animations>
  33. </Style>
  34. </Application.Styles>
  35. </Application>