XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEToolBox

【WPF】XFE工具箱

公开
关注 0 Fork 0 Star 0
UTF-8
<Page x:Class="XFEToolBox.Client.Installer.Views.Pages.Popups.AgreementDialogPopupPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:viewmodel="clr-namespace:XFEToolBox.Client.Installer.ViewModel.Pages.Popups"
      xmlns:controls="clr-namespace:XFEToolBox.WpfCore.Controls;assembly=XFEToolBox.WpfCore"
      mc:Ignorable="d" d:DesignHeight="390" d:DesignWidth="450"
      d:DataContext="{d:DesignInstance Type=viewmodel:AgreementDialogPopupPageViewModel}"
      Background="Transparent" Title="协议" x:Name="agreementDialogPopupPage">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Text="{Binding Title, ElementName=agreementDialogPopupPage}"
                   Foreground="{DynamicResource ToolTextPrimaryBrush}" FontSize="20" FontWeight="Bold"
                   Margin="2,2,2,12" TextWrapping="Wrap"/>
        <Border Grid.Row="1" Padding="13" CornerRadius="12"
                Background="{DynamicResource ToolControlBackgroundBrush}"
                BorderBrush="{DynamicResource ToolControlBorderBrush}" BorderThickness="1">
            <controls:SmoothScrollViewer AnimateMilliseconds="350" ScrollDistanceMultiplier="0.55"
                                           VerticalScrollBarVisibility="Auto">
                <TextBlock Text="{Binding AgreementContent}" Foreground="{DynamicResource ToolTextPrimaryBrush}"
                           TextWrapping="Wrap" LineHeight="22" Padding="0,0,8,0"/>
            </controls:SmoothScrollViewer>
        </Border>
        <Button Grid.Row="2" Height="40" MinWidth="118" Margin="0,14,0,0"
                HorizontalAlignment="Right" Content="确定" Command="{Binding ConfirmCommand}"
                controls:ButtonAssist.IsPrimary="True"/>
    </Grid>
</Page>