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