|
- <UserControl
- x:Class="BPASmartClient.DosingSystem.View.CommParSetView"
- 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:local="clr-namespace:BPASmartClient.DosingSystem.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:vm="clr-namespace:BPASmartClient.DosingSystem.ViewModel"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:CommparSetViewModel />
- </UserControl.DataContext>
-
- <Grid>
-
- <Grid.RowDefinitions>
- <RowDefinition Height="50" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <Button
- Grid.Column="3"
- Width="120"
- Height="30"
- Margin="5,0,5,0"
- HorizontalAlignment="Left"
- Command="{Binding SaveCommand}"
- Content="保存参数"
- FontSize="20"
- Style="{StaticResource ImageButtonStyle}" />
-
- <WrapPanel Grid.Row="1" Grid.ColumnSpan="4">
-
- <Grid Width="350" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="配料设备网段:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.NetworkSegAddress, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- <Grid Width="350" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="输送带PLC地址:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.DeviceAddress, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- <Grid Width="350" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="升降气缸数量:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.LiftCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- <Grid Width="350" Margin="5">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="阻挡气缸数量:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.BlockCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- <Grid
- Width="350"
- Margin="5"
- Background="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="托盘气缸数量:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.PalletCylinderCount, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- <Grid
- Width="350"
- Margin="5"
- Background="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
- <TextBlock
- Margin="0,0,2,0"
- HorizontalAlignment="Right"
- Style="{StaticResource TextBlockStyle}"
- Text="输送带数量:" />
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding CommBaseParModel.ConveyerBeltCount, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- </WrapPanel>
-
- <!--<Grid Grid.Row="2" Grid.ColumnSpan="4">
- <ListView
-
- Grid.Column="1"
- Background="Transparent"
- BorderBrush="#00BEFA"
- BorderThickness="0"
- ItemsSource="{Binding CommBaseParModel.ConveyerBeltModels}"
- ScrollViewer.HorizontalScrollBarVisibility="Disabled">
- <ListView.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel Orientation="Horizontal" />
- </ItemsPanelTemplate>
- </ListView.ItemsPanel>
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid
- Width="350"
- Margin="5"
- Background="Transparent">
- <Grid.ColumnDefinitions>
- <ColumnDefinition />
- <ColumnDefinition />
- </Grid.ColumnDefinitions>
-
- <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
- <TextBlock Style="{StaticResource TextBlockStyle}" Text="{Binding Name}" />
- <TextBlock
- Margin="0,0,2,0"
- Style="{StaticResource TextBlockStyle}"
- Text=":" />
- </StackPanel>
-
- <TextBox
- Grid.Column="1"
- Width="170"
- Height="35"
- HorizontalAlignment="Right"
- FontSize="20"
- Style="{StaticResource TextBoxStyle}"
- Text="{Binding Speed, UpdateSourceTrigger=PropertyChanged}" />
- </Grid>
-
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>-->
-
-
- </Grid>
- </UserControl>
|