App.axaml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <Application xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="kuzminIVProjectWorkOnDemo.App"
  4. xmlns:local="using:kuzminIVProjectWorkOnDemo"
  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.Header">
  13. <Setter Property="FontFamily" Value="Comic Sans MS" />
  14. <Setter Property="HorizontalAlignment" Value="Center" />
  15. <Setter Property="FontSize" Value="20"/>
  16. <Setter Property="VerticalAlignment" Value="Center" />
  17. <Setter Property="FontWeight" Value="Bold"/>
  18. <Setter Property="Foreground" Value="#FF04A0FF"/>
  19. </Style>
  20. <Style Selector="TextBlock.Default">
  21. <Setter Property="FontFamily" Value="Comic Sans MS"/>
  22. <Setter Property="FontSize" Value="14"/>
  23. <Setter Property="Height" Value="30"/>
  24. </Style>
  25. <Style Selector="Button.ButtonTemplate">
  26. <Setter Property="Template">
  27. <ControlTemplate>
  28. <Border BorderBrush="#FF04A0FF" BorderThickness="2" Background="White" CornerRadius="30" Height="40">
  29. <ContentControl Content="{TemplateBinding Content}" FontWeight="Bold" FontFamily="Comic Sans MS" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF04A0FF"/>
  30. </Border>
  31. </ControlTemplate>
  32. </Setter>
  33. </Style>
  34. <Style Selector="Button.ButtonInTemplate">
  35. <Setter Property="Template">
  36. <ControlTemplate>
  37. <Border BorderBrush="Black" BorderThickness="2" Background="White" CornerRadius="20" Height="40">
  38. <ContentControl Content="{TemplateBinding Content}" FontWeight="Bold" FontFamily="Comic Sans MS" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Black"/>
  39. </Border>
  40. </ControlTemplate>
  41. </Setter>
  42. </Style>
  43. </Application.Styles>
  44. </Application>