mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-25 10:05:49 +08:00
103 lines
4.2 KiB
XML
103 lines
4.2 KiB
XML
<ui:FluentWindow x:Class="BetterGenshinImpact.View.Windows.ThemedMessageBox"
|
|
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:ui="http://schemas.lepo.co/wpfui/2022/xaml"
|
|
xmlns:behavior="clr-namespace:BetterGenshinImpact.View.Behavior"
|
|
Width="560"
|
|
SizeToContent="Height"
|
|
MinWidth="440"
|
|
MinHeight="200"
|
|
MaxHeight="360"
|
|
ui:Design.Background="{DynamicResource ApplicationBackgroundBrush}"
|
|
ui:Design.Foreground="{DynamicResource TextFillColorPrimaryBrush}"
|
|
ExtendsContentIntoTitleBar="True"
|
|
behavior:AutoTranslateInterceptor.EnableAutoTranslate="True"
|
|
FontFamily="{DynamicResource TextThemeFontFamily}"
|
|
ResizeMode="NoResize"
|
|
WindowStartupLocation="CenterOwner"
|
|
WindowStyle="SingleBorderWindow"
|
|
WindowBackdropType="Auto"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- 标题栏 -->
|
|
<ui:TitleBar Grid.Row="0"
|
|
x:Name="TitleBar"
|
|
Title="{Binding Title, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
ShowMaximize="False"
|
|
ShowMinimize="False" />
|
|
|
|
<!-- 内容区域 -->
|
|
<Grid Grid.Row="1" Margin="24,16,24,8">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- 图标 -->
|
|
<ui:SymbolIcon Grid.Column="0"
|
|
x:Name="MessageIcon"
|
|
Symbol="Info24"
|
|
FontSize="48"
|
|
Foreground="{DynamicResource SystemFillColorCautionBrush}"
|
|
VerticalAlignment="Top"
|
|
Margin="0,4,16,0" />
|
|
|
|
<!-- 消息内容 -->
|
|
<ScrollViewer Grid.Column="1"
|
|
MaxHeight="140"
|
|
Padding="0,0,8,0"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<ui:TextBlock x:Name="MessageTextBlock"
|
|
TextAlignment="Left"
|
|
TextWrapping="Wrap"
|
|
FontSize="14"
|
|
VerticalAlignment="Top"
|
|
Foreground="{DynamicResource TextFillColorPrimaryBrush}" />
|
|
</ScrollViewer>
|
|
</Grid>
|
|
|
|
<!-- 按钮区域 -->
|
|
<StackPanel Grid.Row="2"
|
|
x:Name="ButtonPanel"
|
|
Orientation="Horizontal"
|
|
HorizontalAlignment="Right"
|
|
Margin="24,0,24,18">
|
|
|
|
<!-- 主按钮 -->
|
|
<ui:Button x:Name="PrimaryButton"
|
|
Content="确定"
|
|
Appearance="Primary"
|
|
MinWidth="100"
|
|
Margin="0,0,8,0"
|
|
Visibility="Collapsed"
|
|
Click="PrimaryButton_Click" />
|
|
|
|
<!-- 次要按钮 -->
|
|
<ui:Button x:Name="SecondaryButton"
|
|
Content="取消"
|
|
Appearance="Secondary"
|
|
MinWidth="100"
|
|
Margin="0,0,8,0"
|
|
Visibility="Collapsed"
|
|
Click="SecondaryButton_Click" />
|
|
|
|
<!-- 关闭按钮 -->
|
|
<ui:Button x:Name="CloseButton"
|
|
Content="关闭"
|
|
Appearance="Secondary"
|
|
MinWidth="100"
|
|
Visibility="Collapsed"
|
|
Click="CloseButton_Click" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</ui:FluentWindow>
|