|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228 |
- <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>
|