Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="using:MakeMyProject.ViewModels"
- mc:Ignorable="d"
- d:DesignWidth="800"
- d:DesignHeight="650"
- x:Class="MakeMyProject.Views.TermsOfServiceView"
- x:DataType="vm:TermsOfServiceViewModel"
- Background="{DynamicResource ResourceKey=Background}">
- <Design.DataContext>
- <vm:TermsOfServiceViewModel />
- </Design.DataContext>
- <UserControl.Styles>
- <StyleInclude Source="avares://MakeMyProject/Styles/TosStyles.axaml" />
- <Style Selector="Button.TosButton">
- <Setter Property="Background" Value="{DynamicResource Background}" />
- <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
- <Setter Property="BorderBrush" Value="{DynamicResource BorderColor}" />
- <Setter Property="BorderThickness" Value="1" />
- <Setter Property="FontSize" Value="18" />
- <Setter Property="FontWeight" Value="Bold" />
- <Setter Property="HorizontalAlignment" Value="Center" />
- <Setter Property="VerticalAlignment" Value="Center" />
- <Setter Property="HorizontalContentAlignment" Value="Center" />
- <Setter Property="VerticalContentAlignment" Value="Center" />
- <Setter Property="Height" Value="70" />
- <Setter Property="Width" Value="200" />
- <Setter Property="CornerRadius" Value="20" />
- <Setter Property="Margin" Value="0,20,0,20" />
- <Style Selector="^:pointerover /template/ ContentPresenter#PART_ContentPresenter">
- <Setter Property="Background" Value="{DynamicResource Background}" />
- <Setter Property="Foreground" Value="{DynamicResource FontColor}" />
- <Setter Property="BorderBrush" Value="{DynamicResource BorderColor}" />
- <Setter Property="BorderThickness" Value="2" />
- <Setter Property="FontSize" Value="22" />
- </Style>
- </Style>
- </UserControl.Styles>
- <Border Classes="TosBorder">
- <Grid RowDefinitions="Auto, *">
- <Label Classes="TosTitle" Grid.Row="0" Content="{Binding Title}" />
- <Grid Grid.Row="1" RowDefinitions="*, Auto">
- <Border Classes="TosBorder2" Grid.Row="0">
- <ScrollViewer Classes="TosScroll">
- <TextBlock Classes="TosText" Grid.Row="0" Text="{Binding TosText}" />
- </ScrollViewer>
- </Border>
- <Grid Grid.Row="1" ColumnDefinitions="*, *">
- <Button Classes="TosButton" Grid.Column="0" Content="Decline" />
- <Button Classes="TosButton" Grid.Column="1" Content="Accept" />
- </Grid>
- </Grid>
- </Grid>
- </Border>
- </UserControl>
Advertisement
Add Comment
Please, Sign In to add comment