12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <Application xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- x:Class="kuzminIVProjectWorkOnDemo.App"
- xmlns:local="using:kuzminIVProjectWorkOnDemo"
- RequestedThemeVariant="Default">
- <!-- "Default" ThemeVariant follows system theme variant. "Dark" or "Light" are other available options. -->
- <Application.DataTemplates>
- <local:ViewLocator/>
- </Application.DataTemplates>
-
- <Application.Styles>
- <FluentTheme />
- <Style Selector="TextBlock.Header">
- <Setter Property="FontFamily" Value="Comic Sans MS" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="FontSize" Value="20"/>
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="FontWeight" Value="Bold"/>
- <Setter Property="Foreground" Value="#FF04A0FF"/>
- </Style>
- <Style Selector="TextBlock.Default">
- <Setter Property="FontFamily" Value="Comic Sans MS"/>
- <Setter Property="FontSize" Value="14"/>
- <Setter Property="Height" Value="30"/>
- </Style>
- <Style Selector="Button.ButtonTemplate">
- <Setter Property="Template">
- <ControlTemplate>
- <Border BorderBrush="#FF04A0FF" BorderThickness="2" Background="White" CornerRadius="30" Height="40">
- <ContentControl Content="{TemplateBinding Content}" FontWeight="Bold" FontFamily="Comic Sans MS" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="#FF04A0FF"/>
- </Border>
- </ControlTemplate>
- </Setter>
- </Style>
- <Style Selector="Button.ButtonInTemplate">
- <Setter Property="Template">
- <ControlTemplate>
- <Border BorderBrush="Black" BorderThickness="2" Background="White" CornerRadius="20" Height="40">
- <ContentControl Content="{TemplateBinding Content}" FontWeight="Bold" FontFamily="Comic Sans MS" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="Black"/>
- </Border>
- </ControlTemplate>
- </Setter>
- </Style>
- </Application.Styles>
- </Application>
|