144 lines
6.3 KiB
XML
144 lines
6.3 KiB
XML
<Window x:Class="DentistryHandpieces.HiddenSpeedSettingsWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
Title="转速隐藏参数设置"
|
|
Width="920"
|
|
Height="720"
|
|
MinWidth="760"
|
|
MinHeight="560"
|
|
WindowStartupLocation="CenterOwner"
|
|
FontFamily="Microsoft YaHei UI"
|
|
FontSize="16"
|
|
Background="#EDF2F5">
|
|
<Window.Resources>
|
|
<Style TargetType="TextBox">
|
|
<Setter Property="Height" Value="40" />
|
|
<Setter Property="Padding" Value="10,4" />
|
|
<Setter Property="FontSize" Value="17" />
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
<Setter Property="Background" Value="#F8FAFC" />
|
|
<Setter Property="BorderBrush" Value="#B8C5D1" />
|
|
</Style>
|
|
<Style TargetType="Button">
|
|
<Setter Property="MinHeight" Value="44" />
|
|
<Setter Property="Padding" Value="18,8" />
|
|
<Setter Property="FontSize" Value="17" />
|
|
<Setter Property="FontWeight" Value="SemiBold" />
|
|
<Setter Property="Background" Value="#1F4F73" />
|
|
<Setter Property="Foreground" Value="White" />
|
|
<Setter Property="BorderBrush" Value="#15384F" />
|
|
</Style>
|
|
</Window.Resources>
|
|
|
|
<Grid Margin="18">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Border Background="White"
|
|
BorderBrush="#C9D4DD"
|
|
BorderThickness="1"
|
|
CornerRadius="6"
|
|
Padding="16">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="240" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="120" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="负载转速设置"
|
|
FontSize="19"
|
|
FontWeight="Bold"
|
|
VerticalAlignment="Center"
|
|
Foreground="#22313F" />
|
|
<TextBox Grid.Column="1"
|
|
Text="{Binding LoadSpeedSettingInput, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="12,0" />
|
|
<Button Grid.Column="2"
|
|
Content="保存"
|
|
Command="{Binding SaveLoadSpeedSettingCommand}"
|
|
Margin="0" />
|
|
</Grid>
|
|
</Border>
|
|
|
|
<DataGrid Grid.Row="1"
|
|
ItemsSource="{Binding SpeedCoefficientSettings}"
|
|
Margin="0,14"
|
|
AutoGenerateColumns="False"
|
|
CanUserAddRows="False"
|
|
CanUserDeleteRows="False"
|
|
HeadersVisibility="Column"
|
|
AlternatingRowBackground="#F3F7FA"
|
|
GridLinesVisibility="Horizontal"
|
|
RowHeight="42"
|
|
FontSize="16">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Header="参数名称"
|
|
Binding="{Binding RangeText}"
|
|
IsReadOnly="True"
|
|
Width="*" />
|
|
<DataGridTemplateColumn Header="设置值" Width="320">
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
<DataTemplate>
|
|
<Grid Margin="4,2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="92" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBox Text="{Binding ValueText, UpdateSourceTrigger=PropertyChanged}"
|
|
Margin="0,0,8,0" />
|
|
<Button Grid.Column="1"
|
|
Content="保存"
|
|
Command="{Binding DataContext.SaveSpeedCoefficientCommand, RelativeSource={RelativeSource AncestorType=Window}}"
|
|
CommandParameter="{Binding}"
|
|
MinHeight="36"
|
|
Padding="12,4" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
</DataGridTemplateColumn>
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
|
|
<Border Grid.Row="2"
|
|
Background="White"
|
|
BorderBrush="#C9D4DD"
|
|
BorderThickness="1"
|
|
CornerRadius="6"
|
|
Padding="14">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
<TextBlock Text="{Binding StatusText}"
|
|
TextWrapping="Wrap"
|
|
Foreground="#334155"
|
|
FontWeight="SemiBold" />
|
|
<Grid Grid.Row="1" Margin="0,12,0,0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="150" />
|
|
<ColumnDefinition Width="150" />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Text="仅保存当前修改项"
|
|
VerticalAlignment="Center"
|
|
Foreground="#52616F" />
|
|
<Button Grid.Column="1"
|
|
Content="重新读取"
|
|
Command="{Binding ReadCommand}"
|
|
Margin="8,0" />
|
|
<Button Grid.Column="2"
|
|
Content="关闭"
|
|
Click="CloseButton_Click"
|
|
Margin="8,0,0,0"
|
|
Background="#64748B"
|
|
BorderBrush="#475569" />
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Window>
|