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

97 lines
4.0 KiB
XML

<mah:MetroWindow
x:Class="AuroraLaser.Views.MWLaserCompactCalibSaveDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:AuroraLaser.Views"
xmlns:aurora="clr-namespace:Aurora.View;assembly=Aurora"
xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
mc:Ignorable="d" Topmost="True"
MinWidth="200"
ShowMaxRestoreButton="False"
ShowMinButton="False"
ShowTitleBar="False"
SizeToContent="Height">
<mah:MetroWindow.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<aurora:SharedResourceDictionary Source="pack://application:,,,/AuroraUIComponent;component/Style/StyleResource.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</mah:MetroWindow.Resources>
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<TextBlock
Grid.Row="0"
Name="mTxtTitle"
Margin="0,0,0,20"
FontSize="24"/>
<TextBox
Name="mTxtMessage"
Grid.Row="1"
Height="Auto"
MaxHeight="300"
BorderThickness="0"
FontSize="14"
IsReadOnly="True"
ScrollViewer.VerticalScrollBarVisibility="Auto"
TextWrapping="Wrap" />
<Border
Grid.Row="1"
Name="mBorderControl"/>
<!-- PowerModel selector: Radio button -->
<StackPanel Grid.Row="2"
Orientation="Horizontal"
HorizontalAlignment="Center">
<RadioButton x:Name="rbLUT" Margin="10 5"
GroupName="PowerCalibSelector"
Content="LUT"
Checked="HandleCalibSelectorCheck"
mah:RadioButtonHelper.OuterEllipseCheckedStroke="{DynamicResource BLGRedCustomDark}"
mah:RadioButtonHelper.OuterEllipseCheckedStrokePointerOver="{DynamicResource BLGRed}"/>
<RadioButton x:Name="rbLin1Seg" Margin="10 5"
GroupName="PowerCalibSelector"
Content="Lin1Seg"
Checked="HandleCalibSelectorCheck"
mah:RadioButtonHelper.OuterEllipseCheckedStroke="{DynamicResource BLGRedCustomDark}"
mah:RadioButtonHelper.OuterEllipseCheckedStrokePointerOver="{DynamicResource BLGRed}"/>
<RadioButton x:Name="rbLin2Seg" Margin="10 5"
GroupName="PowerCalibSelector"
Content="Lin2Seg"
Checked="HandleCalibSelectorCheck"
mah:RadioButtonHelper.OuterEllipseCheckedStroke="{DynamicResource BLGRedCustomDark}"
mah:RadioButtonHelper.OuterEllipseCheckedStrokePointerOver="{DynamicResource BLGRed}"/>
</StackPanel>
<StackPanel
Grid.Row="3"
HorizontalAlignment="Right"
Margin="0,30,50,0"
Orientation="Horizontal">
<Button
Name="mBtnNagative"
Width="80"
Margin="0,0,5,0"
Click="Click_Nagative"
Content="{Binding [Cancel],
Source={StaticResource langTokens}}"/>
<Button
Name="mBtnAffirmative"
Width="80"
Click="Click_Positive"
Content="{Binding [Ok],
Source={StaticResource langTokens}}"/>
</StackPanel>
</Grid>
</mah:MetroWindow>