123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <UserControl x:Class="PLCTool.Views.BusinessManageView.WritePLCView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PLCTool.Views.BusinessManageView"
- mc:Ignorable="d"
- BorderBrush="#CBCBCB" BorderThickness="1"
- Height="300" Width="500" >
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition />
- <RowDefinition />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Grid.Row="0" Cursor="Hand" >
- <StackPanel Orientation="Horizontal" Margin="10,5,0,0">
- <TextBlock Text="向PLC写入值" FontSize="15"/>
- </StackPanel>
-
- </Grid>
- <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Center">
- <TextBlock Text="PLC地址:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0" TextAlignment="Right" Width="80"/>
- <!--<ComboBox Height="28" Width="120" ItemsSource="{Binding PLCVars}" SelectedItem="{Binding SelectPLCVar}" />-->
- <TextBox Height="28" Width="120" Text="{Binding PLCAddr}" IsReadOnly="True" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="2" HorizontalAlignment="Center">
- <TextBlock Text="数据值:" Style="{StaticResource NormalTextBlockStyle}" Margin="10,0,5,0" TextAlignment="Right" Width="80"/>
- <TextBox Height="28" Width="120" Text="{Binding PLCValue}" IsReadOnly="True" />
- </StackPanel>
- <StackPanel Orientation="Horizontal" Grid.Row="3" HorizontalAlignment="Center">
- <Button Content="取消" Width="80" Margin="5,0" Command="{Binding CancelCommand}" Opacity="0.7" Style="{StaticResource NormalButtonStyle}" />
- <Button Content="确认" Width="80" Margin="5,0" Command="{Binding SureCommand}" Style="{StaticResource NormalButtonStyle}" />
- </StackPanel>
- </Grid>
- </UserControl>
|