<Window 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" Width="600" Height="300" AllowsTransparency="True" Background="Transparent" DataContext="{Binding EditSoundSpeed, Source={StaticResource Locator}}" Loaded="EditSoundSpeedDialog_OnLoaded" ResizeMode="NoResize" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" WindowStyle="None" mc:Ignorable="d"> <Border Margin="5" 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="35" 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="35" 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="35" 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 x:Name="CancelParamButton" Grid.Column="0" Width="150" Height="35" HorizontalAlignment="Left" Content="取消" FontSize="18" Style="{StaticResource ButtonDefault}" /> <Button Grid.Column="1" Width="150" Height="35" HorizontalAlignment="Left" Command="{Binding DetermineParamCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=Window}}" Content="确定" FontSize="18" Style="{StaticResource ButtonPrimary}" /> </Grid> </Grid> </Border> </Window>