mekasu0124

Untitled

Mar 14th, 2024
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.68 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:MakeMyProject.ViewModels"
  6.             mc:Ignorable="d"
  7.              d:DesignWidth="800"
  8.              d:DesignHeight="650"
  9.             x:Class="MakeMyProject.Views.TermsOfServiceView"
  10.              x:DataType="vm:TermsOfServiceViewModel"
  11.              Background="{DynamicResource ResourceKey=Background}">
  12.  
  13.     <Design.DataContext>
  14.         <vm:TermsOfServiceViewModel />
  15.     </Design.DataContext>
  16.  
  17.     <UserControl.Styles>
  18.         <StyleInclude Source="avares://MakeMyProject/Styles/TosStyles.axaml" />
  19.  
  20.         <Style Selector="Button.TosButton">
  21.             <Setter Property="Background" Value="{DynamicResource Background}" />
  22.             <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
  23.             <Setter Property="BorderBrush" Value="{DynamicResource BorderColor}" />
  24.             <Setter Property="BorderThickness" Value="1" />
  25.             <Setter Property="FontSize" Value="18" />
  26.             <Setter Property="FontWeight" Value="Bold" />
  27.             <Setter Property="HorizontalAlignment" Value="Center" />
  28.             <Setter Property="VerticalAlignment" Value="Center" />
  29.             <Setter Property="HorizontalContentAlignment" Value="Center" />
  30.             <Setter Property="VerticalContentAlignment" Value="Center" />
  31.             <Setter Property="Height" Value="70" />
  32.             <Setter Property="Width" Value="200" />
  33.             <Setter Property="CornerRadius" Value="20" />
  34.             <Setter Property="Margin" Value="0,20,0,20" />
  35.  
  36.             <Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
  37.                 <Setter Property="Background" Value="{DynamicResource Background}" />
  38.                 <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
  39.                 <Setter Property="BorderBrush" Value="{DynamicResource BorderColor}" />
  40.                 <Setter Property="BorderThickness" Value="2" />
  41.                 <Setter Property="FontSize" Value="22" />
  42.             </Style>
  43.         </Style>
  44.     </UserControl.Styles>
  45.  
  46.     <Border Classes="TosBorder">
  47.         <Grid RowDefinitions="Auto, *">
  48.             <Label Classes="TosTitle" Grid.Row="0" Content="{Binding Title}" />
  49.  
  50.             <Grid Grid.Row="1" RowDefinitions="*, Auto">
  51.                 <Border Classes="TosBorder2" Grid.Row="0">
  52.                     <ScrollViewer Classes="TosScroll">
  53.                         <TextBlock Classes="TosText" Grid.Row="0" Text="{Binding TosText}" />
  54.                     </ScrollViewer>
  55.                 </Border>
  56.                
  57.                 <Grid Grid.Row="1" ColumnDefinitions="*, *">
  58.                     <Button Classes="TosButton" Grid.Column="0" Content="Decline" />
  59.                     <Button Classes="TosButton" Grid.Column="1" Content="Accept" />
  60.                 </Grid>
  61.             </Grid>
  62.         </Grid>
  63.     </Border>
  64.    
  65.    
  66. </UserControl>
  67.  
Advertisement
Add Comment
Please, Sign In to add comment