Files
community/Ink Canvas/Windows/PrivacyAgreementWindow.xaml
T
2026-02-07 11:15:39 +08:00

70 lines
3.7 KiB
XML

<Window x:Class="Ink_Canvas.PrivacyAgreementWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
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:local="clr-namespace:Ink_Canvas"
mc:Ignorable="d" FontFamily="Microsoft YaHei UI" ui:WindowHelper.UseModernWindowStyle="True"
WindowStartupLocation="CenterScreen"
xmlns:ui="http://schemas.inkore.net/lib/ui/wpf/modern" Topmost="True"
Title="隐私说明 - Ink Canvas" Height="600" Width="600"
Loaded="Window_Loaded" Closing="Window_Closing">
<Window.Resources>
<SolidColorBrush x:Key="PrivacyAgreementWindowBackground" Color="White"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowForeground" Color="Black"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowButtonBackground" Color="#F4F4F5"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowButtonForeground" Color="Black"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowBorderBrush" Color="#E4E4E7"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowButtonAcceptBackground" Color="#3584e4"/>
<SolidColorBrush x:Key="PrivacyAgreementWindowButtonAcceptForeground" Color="White"/>
</Window.Resources>
<Grid Background="{DynamicResource PrivacyAgreementWindowBackground}">
<Label Content="隐私说明"
Margin="10,10,10,0"
VerticalAlignment="Top"
Foreground="{DynamicResource PrivacyAgreementWindowForeground}"
FontFamily="Microsoft YaHei UI"
FontSize="18"
FontWeight="Bold"/>
<ScrollViewer Margin="10,45,10,60"
VerticalScrollBarVisibility="Auto"
HorizontalScrollBarVisibility="Disabled">
<TextBox Name="TextBoxPrivacyContent"
FontFamily="Microsoft YaHei UI"
VerticalScrollBarVisibility="Auto"
AcceptsReturn="True"
IsReadOnly="True"
TextWrapping="Wrap"
Background="{DynamicResource PrivacyAgreementWindowBackground}"
Foreground="{DynamicResource PrivacyAgreementWindowForeground}"
BorderBrush="{DynamicResource PrivacyAgreementWindowBorderBrush}"
Padding="10"/>
</ScrollViewer>
<StackPanel Orientation="Horizontal"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
Margin="10">
<Button Name="ButtonCancel"
Margin="0,0,10,0"
Content="取消"
FontFamily="Microsoft YaHei UI"
Width="100"
Height="35"
Click="ButtonCancel_Click"
Background="{DynamicResource PrivacyAgreementWindowButtonBackground}"
Foreground="{DynamicResource PrivacyAgreementWindowButtonForeground}"
BorderBrush="{DynamicResource PrivacyAgreementWindowBorderBrush}"/>
<Button Name="ButtonAccept"
Content="同意"
FontFamily="Microsoft YaHei UI"
Width="100"
Height="35"
Click="ButtonAccept_Click"
Background="{DynamicResource PrivacyAgreementWindowButtonAcceptBackground}"
Foreground="{DynamicResource PrivacyAgreementWindowButtonAcceptForeground}"
BorderBrush="{DynamicResource PrivacyAgreementWindowBorderBrush}"/>
</StackPanel>
</Grid>
</Window>