<UserControl x:Class="Correlator.Dialog.EditSoundSpeedDialog" 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:hc="https://handyorg.github.io/handycontrol" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:prism="http://prismlibrary.com/" xmlns:vm="clr-namespace:Correlator.ViewModels" Width="600" Height="330" d:DataContext="{d:DesignInstance Type=vm:EditSoundSpeedDialogViewModel}" mc:Ignorable="d"> <prism:Dialog.WindowStyle> <Style TargetType="Window"> <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterOwner" /> <Setter Property="ShowInTaskbar" Value="False" /> <Setter Property="SizeToContent" Value="WidthAndHeight" /> <Setter Property="WindowStyle" Value="None" /> <Setter Property="AllowsTransparency" Value="True" /> <Setter Property="Background" Value="Transparent" /> </Style> </prism:Dialog.WindowStyle> <Border Margin="3" Background="White" CornerRadius="10"> <Border.Effect> <DropShadowEffect BlurRadius="5" Direction="0" Opacity="0.5" ShadowDepth="0" Color="Blue" /> </Border.Effect> <Grid Width="380" Margin="10"> <Grid.RowDefinitions> <RowDefinition Height="4*" /> <RowDefinition Height="*" /> </Grid.RowDefinitions> <Grid Grid.Row="0" Margin="0,10" HorizontalAlignment="Center"> <Grid.RowDefinitions> <RowDefinition /> <RowDefinition /> <RowDefinition /> </Grid.RowDefinitions> <StackPanel Grid.Row="0" Orientation="Horizontal"> <TextBlock Margin="5,0" VerticalAlignment="Center" FontSize="18" Text="最小直径" /> <hc:TextBox Width="250" Height="40" Margin="5,0" BorderBrush="#E0E0E0" FontSize="18" ShowClearButton="True" Text="{Binding MinDiameter}" /> <TextBlock Margin="3,0" VerticalAlignment="Center" FontSize="18" Text="mm" /> </StackPanel> <StackPanel Grid.Row="1" Orientation="Horizontal"> <TextBlock Margin="5,0" VerticalAlignment="Center" FontSize="18" Text="最大直径" /> <hc:TextBox Width="250" Height="40" Margin="5,0" BorderBrush="#E0E0E0" FontSize="18" ShowClearButton="True" Text="{Binding MaxDiameter}" /> <TextBlock Margin="3,0" VerticalAlignment="Center" FontSize="18" Text="mm" /> </StackPanel> <StackPanel Grid.Row="2" Orientation="Horizontal"> <TextBlock Margin="5,0" VerticalAlignment="Center" FontSize="18" Text="声 速" /> <hc:TextBox Width="250" Height="40" Margin="5,0" BorderBrush="#E0E0E0" FontSize="18" ShowClearButton="True" Text="{Binding SoundSpeed}" /> <TextBlock Margin="3,0" VerticalAlignment="Center" FontSize="18" Text="m/s" /> </StackPanel> </Grid> <Grid Grid.Row="1" VerticalAlignment="Center"> <Grid.ColumnDefinitions> <ColumnDefinition /> <ColumnDefinition /> </Grid.ColumnDefinitions> <Button Grid.Column="0" Width="150" Height="40" HorizontalAlignment="Left" Command="{Binding CancelCommand}" Content="取消" FontSize="18" Style="{StaticResource ButtonDefault}" /> <Button Grid.Column="1" Width="150" HorizontalAlignment="Left" Command="{Binding DetermineParamCommand}" Content="确定" FontSize="18" Style="{StaticResource FunctionButtonStyle}" /> </Grid> </Grid> </Border> </UserControl>