105040 Update 优化提示窗口

This commit is contained in:
lihanbo 2025-01-24 11:27:31 +08:00
parent 2870b5ea2a
commit ab5345b1b8
1 changed files with 13 additions and 5 deletions

View File

@ -5,11 +5,12 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Sinvo.EplanHpD.Plugin.WPFUI.View.Dialog" xmlns:local="clr-namespace:Sinvo.EplanHpD.Plugin.WPFUI.View.Dialog"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Width="800" Width="500"
Height="450" Height="300"
Background="#f5f5f5" Background="#f5f5f5"
CornerRadius="5" CornerRadius="5"
mc:Ignorable="d"> mc:Ignorable="d">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>
<RowDefinition Height="*" /> <RowDefinition Height="*" />
@ -21,7 +22,14 @@
HorizontalAlignment="Center" HorizontalAlignment="Center"
VerticalAlignment="Center" VerticalAlignment="Center"
FontSize="20" FontSize="20"
Text="以下轴号的选型数据未保存,是否继续操作?继续操作将丢失未保存的数据!" Text="继续操作将丢失未保存的数据!"
TextWrapping="Wrap" />
<TextBlock
Margin="10"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontSize="20"
Text="以下电机的选型数据未保存,是否继续操作?"
TextWrapping="Wrap" /> TextWrapping="Wrap" />
<ListBox <ListBox
Height="300" Height="300"
@ -30,8 +38,8 @@
<ListBox.ItemTemplate> <ListBox.ItemTemplate>
<DataTemplate> <DataTemplate>
<StackPanel Orientation="Horizontal"> <StackPanel Orientation="Horizontal">
<TextBlock Margin="5,0" Text="{Binding Key}" /> <TextBox IsReadOnly="True" Text="{Binding Key, Mode=OneWay}" />
<TextBlock Margin="5,0" Text="{Binding Value}" /> <TextBox IsReadOnly="True" Text="{Binding Value, Mode=OneWay}" />
</StackPanel> </StackPanel>
</DataTemplate> </DataTemplate>
</ListBox.ItemTemplate> </ListBox.ItemTemplate>