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

57 lines
2.2 KiB
Plaintext
Raw 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"
Width="800"
Height="450"
Background="#f5f5f5"
CornerRadius="5"
mc:Ignorable="d">
<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"
Text="以下轴号的选型数据未保存,是否继续操作?继续操作将丢失未保存的数据!"
TextWrapping="Wrap" />
<ListBox
Height="300"
Margin="10"
ItemsSource="{Binding NotSavedLectotypeList}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Margin="5,0" Text="{Binding Key}" />
<TextBlock Margin="5,0" Text="{Binding Value}" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</StackPanel>
<StackPanel Grid.Row="1">
<StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
<Button
Width="100"
Click="btnOK_Click"
2025-01-24 08:46:21 +08:00
Content="是"
Style="{StaticResource ButtonDanger}" />
<Button
Width="100"
Click="btnCancel_Click"
2025-01-24 08:46:21 +08:00
Content="否"
Style="{StaticResource ButtonInfo}" />
</StackPanel>
</StackPanel>
</Grid>
</Border>