2026-01-26 18:56:53 +09:00

77 lines
3.9 KiB
XML

<Window x:Class="VisionCommonUI.MessageBoxQuestion"
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:VisionCommonUI"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
mc:Ignorable="d"
WindowStyle="None"
WindowStartupLocation="CenterScreen"
ResizeMode="NoResize"
Background="Transparent"
AllowsTransparency="True"
Topmost="True"
Width="400" Height="320"
KeyDown="MessageBox_KeyDown">
<Border CornerRadius="20" Background="{DynamicResource AuroraVision.MessageBox.BackgroundBrush}">
<StackPanel HorizontalAlignment="Center"
VerticalAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="25"/>
</Grid.RowDefinitions>
<Grid Grid.Row="1">
<Border Width="55" Height="55" CornerRadius="100" Background="Aqua"/>
<Image RenderOptions.BitmapScalingMode="HighQuality"
Height="65" Width="65"
Source="pack://application:,,,/VisionCommonUI;component/Icons/img_question.png"
ToolTip="Question"/>
</Grid>
<Grid Grid.Row="3">
<Viewbox Width="340" VerticalAlignment="Stretch">
<TextBlock x:Name="tbStatusMessage"
TextWrapping="Wrap"
Width="340"
TextAlignment="Center"
Margin="10,10,10,10"
FontWeight="Bold"
Foreground="{DynamicResource AVThemeForeground}"
FontSize="18"
Style="{StaticResource styleTextBlockBase}"/>
</Viewbox>
</Grid>
<Grid Grid.Row="5">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
<Button Width="120" Height="40" Margin="15,0,15,0"
VerticalAlignment="Center" HorizontalAlignment="Center"
Style="{StaticResource styleMsgBoxButton}"
Click="Button_Click_Question_Yes">
<TextBlock Text="{Binding [Yes], Source={StaticResource langTokens}, Mode=OneWay}"
Foreground="Black" FontSize="20"
Style="{StaticResource styleTextBlockSubTitle}"/>
</Button>
<Button Width="120" Height="40" Margin="15,0,15,0"
VerticalAlignment="Center" HorizontalAlignment="Center"
Style="{StaticResource styleMsgBoxButton}"
Click="Button_Click_Question_No">
<TextBlock Text="{Binding [Q_No], Source={StaticResource langTokens}, Mode=OneWay}"
Foreground="Black" FontSize="20"
Style="{StaticResource styleTextBlockSubTitle}"/>
</Button>
</StackPanel>
</Grid>
</Grid>
</StackPanel>
</Border>
</Window>