RobotConfigAddOrEditView.xaml 4.5 KB
<Window
    x:Class="HHECS.RobotTool.View.RobotConfigView.RobotConfigAddOrEditView"
    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:local="clr-namespace:HHECS.RobotTool.View.RobotConfigView"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:viewmodel="clr-namespace:HHECS.RobotTool.ViewModel.RobotConfigVM"
    Title="新增基础配置"
    Width="280"
    Height="420"
    d:DataContext="{d:DesignInstance Type=viewmodel:RobotConfigAddOrEditVM}"
    ResizeMode="NoResize"
    WindowStartupLocation="CenterScreen"
    mc:Ignorable="d">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <hc:UniformSpacingPanel
            HorizontalAlignment="Center"
            ChildWrapping="Wrap"
            Spacing="10">
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Title="编号:"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.Code}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="名称:"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.Name}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="焊缝长度(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.WeldLength}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="焊丝直径(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.WeldingWire}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="一次焊接的高度(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.OneWeldHeight}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="盖面后所需焊缝余高(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.WeldHeight}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="盖面后单边所需增加余宽(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.WeldWidth}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="送丝速度(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.WireFeedingSpeed}" />
            <hc:TextBox
                Width="240"
                hc:InfoElement.Necessary="True"
                hc:InfoElement.Placeholder=""
                hc:InfoElement.Title="一层打底送丝速度(mm):"
                hc:InfoElement.TitlePlacement="Left"
                Text="{Binding RobotConfig.OneLayerWireFeedingSpeed}" />
        </hc:UniformSpacingPanel>
        <hc:UniformSpacingPanel
            Grid.Row="1"
            HorizontalAlignment="Center"
            Spacing="60">
            <Button
                hc:IconElement.Geometry="{StaticResource SaveGeometry}"
                Command="{Binding SaveCommand}"
                Content="保存"
                Style="{StaticResource ButtonPrimary}" />
            <Button
                hc:IconElement.Geometry="{StaticResource CloseGeometry}"
                Command="{Binding CancelCommand}"
                Content="取消"
                Style="{StaticResource ButtonDefault}" />
        </hc:UniformSpacingPanel>
    </Grid>
</Window>