2026-06-05 13:44:39 +09:00

110 lines
5.3 KiB
XML

<Window x:Class="VisionCommonUI.MessageBoxQuestionOption"
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="350"
KeyDown="MessageBox_KeyDown">
<Window.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<view:SharedResourceDictionary Source="pack://application:,,,/VisionCommonUI;component/Styles/VisionResources.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Window.Resources>
<Border CornerRadius="20">
<Border.Background>
<LinearGradientBrush EndPoint="0.5,1" MappingMode="RelativeToBoundingBox" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="1.3"/>
<GradientStop Color="DarkGray"/>
</LinearGradientBrush>
</Border.Background>
<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"/>
<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,0"
FontWeight="Bold"
Foreground="White"
FontSize="18"
Style="{StaticResource styleTextBlockBase}"/>
</Viewbox>
</Grid>
<Grid Grid.Row="5">
<StackPanel Orientation="Vertical">
<TextBlock x:Name="tboxOptionTitle"
Width="260"
HorizontalAlignment="Center"
Margin="3"
TextAlignment="Center"
FontSize="15"
FontWeight="Medium"
Foreground="White"/>
<ComboBox x:Name="cbboxOptions"
Width="260" Height="35"
FontWeight="Medium"
Margin="5"/>
</StackPanel>
</Grid>
<Grid Grid.Row="7">
<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>