EPLAN_PROD_Plugin/Sinvo.EplanHpD.Plugin.WPFUI/View/Dialog/NotSavedWarningWindow.xaml

67 lines
2.5 KiB
Plaintext
Raw Permalink Normal View History

<Border
x:Class="Sinvo.EplanHpD.Plugin.WPFUI.View.Dialog.NotSavedWarningWindow"
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:local="clr-namespace:Sinvo.EplanHpD.Plugin.WPFUI.View.Dialog"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
2025-01-24 11:27:31 +08:00
Width="500"
Height="300"
Background="#f5f5f5"
CornerRadius="5"
mc:Ignorable="d">
2025-01-24 11:27:31 +08:00
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*" />
<RowDefinition Height="60" />
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Vertical">
<TextBlock
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"
2025-01-24 11:27:31 +08:00
Text="继续操作将丢失未保存的数据!"
TextWrapping="Wrap" />
<TextBlock
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"
Text="以下电机的选型数据未保存,是否继续操作?"
TextWrapping="Wrap" />
<ListBox
Height="300"
Margin="10"
ItemsSource="{Binding NotSavedLectotypeList}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
2025-01-24 11:27:31 +08:00
<TextBox IsReadOnly="True" Text="{Binding Key, Mode=OneWay}" />
<TextBox IsReadOnly="True" Text="{Binding Value, Mode=OneWay}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
<StackPanel Grid.Row="1">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<Button
Width="100"
2025-04-03 17:30:50 +08:00
Margin="5"
Click="btnOK_Click"
2025-01-24 08:46:21 +08:00
Content="是"
Style="{StaticResource ButtonDanger}" />
<Button
Width="100"
2025-04-03 17:30:50 +08:00
Margin="5"
Click="btnCancel_Click"
2025-01-24 08:46:21 +08:00
Content="否"
Style="{StaticResource ButtonInfo}" />
</StackPanel>
</StackPanel>
</Grid>
</Border>