mekasu0124

Untitled

Oct 17th, 2023
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.77 KB | None | 0 0
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2.             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3.             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4.             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5.              xmlns:vm="using:MeksMathGame.ViewModels"
  6.             mc:Ignorable="d" d:DesignWidth="1500" d:DesignHeight="850"
  7.             x:Class="MeksMathGame.Views.UpdateAvailableView"
  8.              x:DataType="vm:UpdateAvailableViewModel"
  9.              Background="{DynamicResource ResourceKey=Purple}">
  10.  
  11.     <Design.DataContext>
  12.         <vm:UpdateAvailableViewModel />
  13.     </Design.DataContext>
  14.  
  15.     <UserControl.Styles>
  16.         <Style Selector="Image">
  17.             <Setter Property="HorizontalAlignment" Value="Center" />
  18.             <Setter Property="VerticalAlignment" Value="Center" />
  19.             <Setter Property="Width" Value="300" />
  20.             <Setter Property="Height" Value="200" />
  21.         </Style>
  22.        
  23.         <Style Selector="Border">
  24.             <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=Pink}" />
  25.             <Setter Property="BorderThickness" Value="2" />
  26.             <Setter Property="CornerRadius" Value="20" />
  27.             <Setter Property="Padding" Value="10" />
  28.             <Setter Property="Margin" Value="10" />
  29.         </Style>
  30.  
  31.         <Style Selector="Label">
  32.             <Setter Property="Foreground" Value="{DynamicResource ResourceKey=DarkGray}" />
  33.             <Setter Property="FontSize" Value="25" />
  34.             <Setter Property="HorizontalAlignment" Value="Center" />
  35.             <Setter Property="VerticalAlignment" Value="Center" />
  36.             <Setter Property="HorizontalContentAlignment" Value="Center" />
  37.             <Setter Property="VerticalContentAlignment" Value="Center" />
  38.             <Setter Property="Width" Value="350" />
  39.             <Setter Property="Height" Value="70" />
  40.         </Style>
  41.  
  42.         <Style Selector="TextBlock">
  43.             <Setter Property="Foreground" Value="{DynamicResource ResourceKey=DarkGray}" />
  44.             <Setter Property="FontSize" Value="20" />
  45.             <Setter Property="FontWeight" Value="Bold" />
  46.             <Setter Property="HorizontalAlignment" Value="Center" />
  47.             <Setter Property="VerticalAlignment" Value="Center" />
  48.             <Setter Property="Width" Value="350" />
  49.             <Setter Property="Height" Value="150" />
  50.             <Setter Property="TextWrapping" Value="Wrap" />
  51.             <Setter Property="TextAlignment" Value="Center" />
  52.         </Style>
  53.  
  54.         <Style Selector="Button">
  55.             <Setter Property="Foreground" Value="{DynamicResource ResourceKey=DarkGray}" />
  56.             <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=Pink}" />
  57.             <Setter Property="BorderThickness" Value="2" />
  58.             <Setter Property="CornerRadius" Value="10" />
  59.             <Setter Property="Width" Value="200" />
  60.             <Setter Property="Height" Value="70" />
  61.             <Setter Property="HorizontalAlignment" Value="Center" />
  62.             <Setter Property="VerticalAlignment" Value="Center" />
  63.             <Setter Property="HorizontalContentAlignment" Value="Center" />
  64.             <Setter Property="VerticalContentAlignment" Value="Center" />
  65.  
  66.             <Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  67.                 <Setter Property="Foreground" Value="{DynamicResource ResourceKey=DarkGray}" />
  68.                 <Setter Property="BorderBrush" Value="{DynamicResource ResourceKey=Pink}" />
  69.                 <Setter Property="BorderThickness" Value="2" />
  70.                 <Setter Property="CornerRadius" Value="10" />
  71.             </Style>
  72.         </Style>
  73.     </UserControl.Styles>
  74.  
  75.     <Border>
  76.         <Grid RowDefinitions="*, Auto, Auto, Auto, *">
  77.             <Image Grid.Row="0" Source="/Assets/logo.ico"></Image>
  78.            
  79.             <Label Grid.Row="1" Content="{Binding Title}" />
  80.  
  81.             <TextBlock Grid.Row="2" Text="{Binding InformationText}" />
  82.  
  83.             <Label Grid.Row="3" Content="{Binding SubInformation}" />
  84.  
  85.             <Grid ColumnDefinitions="*,*" Grid.Row="4">
  86.                 <Button Grid.Column="0" Content="Launch Update" />
  87.                 <Button Grid.Column="1" Content="Start Game" />
  88.             </Grid>
  89.         </Grid>
  90.     </Border>
  91. </UserControl>
  92.  
Advertisement
Add Comment
Please, Sign In to add comment