mirror of
https://github.com/SpaceTimee/Sheas-Cealer.git
synced 2025-07-13 21:02:08 +08:00
63 lines
3.6 KiB
XML
63 lines
3.6 KiB
XML
<Window x:Class="Sheas_Cealer.Wins.AboutWin"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:convs="clr-namespace:Sheas_Cealer.Convs"
|
|
xmlns:consts="clr-namespace:Sheas_Cealer.Consts"
|
|
mc:Ignorable="d"
|
|
Style="{DynamicResource CommonWindow}" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" SizeToContent="Height" Width="500" MinWidth="500"
|
|
KeyDown="AboutWin_KeyDown">
|
|
<Window.Resources>
|
|
<consts:AboutConst x:Key="AboutConst" />
|
|
</Window.Resources>
|
|
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="1.1*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Button x:Name="DeveloperButton"
|
|
Content="{Binding DeveloperButtonContent, Source={StaticResource AboutConst}}" Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2" Margin="5" Foreground="#FF2196F3" ToolTip="{Binding DeveloperButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click" />
|
|
<Button x:Name="VersionButton"
|
|
Grid.Row="1" Grid.Column="0" Margin="5" Foreground="#FF2196F3" ToolTip="{Binding VersionButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click">
|
|
<Button.Content>
|
|
<MultiBinding Mode="OneTime">
|
|
<MultiBinding.Converter>
|
|
<convs:AboutVersionButtonContentConv />
|
|
</MultiBinding.Converter>
|
|
|
|
<Binding Path="VersionButtonContent" Source="{StaticResource AboutConst}" />
|
|
<Binding Path="Version" Source="{StaticResource AboutConst}" />
|
|
|
|
</MultiBinding>
|
|
</Button.Content>
|
|
</Button>
|
|
<Button x:Name="EmailButton"
|
|
Content="{Binding EmailButtonContent, Source={StaticResource AboutConst}}" Grid.Row="1" Grid.Column="1" Margin="5" ToolTip="{Binding EmailButtonUrl, Source={StaticResource AboutConst}}" />
|
|
|
|
<Button x:Name="InstructionButton"
|
|
Content="{Binding InstructionButtonContent, Source={StaticResource AboutConst}}" Grid.Row="0" Grid.Column="2" Margin="5" ToolTip="{Binding InstructionButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click" />
|
|
<Button x:Name="OpenSourceButton"
|
|
Content="{Binding OpenSourceButtonContent, Source={StaticResource AboutConst}}" Grid.Row="1" Grid.Column="2" Margin="5" ToolTip="{Binding OpenSourceButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click" />
|
|
|
|
<Button x:Name="PrivacyButton"
|
|
Content="{Binding PrivacyButtonContent, Source={StaticResource AboutConst}}" Grid.Row="0" Grid.Column="3" Margin="5" ToolTip="{Binding PrivacyButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click" />
|
|
<Button x:Name="AgreementButton"
|
|
Content="{Binding AgreementButtonContent, Source={StaticResource AboutConst}}" Grid.Row="1" Grid.Column="3" Margin="5" ToolTip="{Binding AgreementButtonUrl, Source={StaticResource AboutConst}}"
|
|
Click="AboutButton_Click" />
|
|
|
|
</Grid>
|
|
</Window> |