完成打开导入OPC变量对话框自动连接服务器
This commit is contained in:
@@ -12,11 +12,9 @@
|
||||
SecondaryButtonText="取消"
|
||||
PrimaryButtonClick="ContentDialog_PrimaryButtonClick"
|
||||
SecondaryButtonClick="ContentDialog_SecondaryButtonClick"
|
||||
Width="800"
|
||||
Height="600">
|
||||
>
|
||||
<Grid>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="*" />
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
@@ -24,23 +22,8 @@
|
||||
<ColumnDefinition Width="2*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<!-- 连接设置 -->
|
||||
<StackPanel Grid.Row="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal"
|
||||
Margin="0,0,0,10">
|
||||
<TextBlock Text="Endpoint URL:"
|
||||
VerticalAlignment="Center"
|
||||
Margin="0,0,5,0" />
|
||||
<TextBox Text="{Binding EndpointUrl, UpdateSourceTrigger=PropertyChanged}"
|
||||
Width="300"
|
||||
Margin="0,0,10,0" />
|
||||
<Button Content="连接"
|
||||
Command="{Binding ConnectCommand}" />
|
||||
</StackPanel>
|
||||
|
||||
<!-- 节点树 -->
|
||||
<TreeView Grid.Row="1"
|
||||
<TreeView Grid.Row="0"
|
||||
Grid.Column="0"
|
||||
ItemsSource="{Binding OpcUaNodes}"
|
||||
Margin="0,0,10,0"
|
||||
@@ -67,7 +50,7 @@
|
||||
</TreeView>
|
||||
|
||||
<!-- 变量列表 -->
|
||||
<DataGrid Grid.Row="1"
|
||||
<DataGrid Grid.Row="0"
|
||||
Grid.Column="1"
|
||||
ItemsSource="{Binding SelectedNodeVariables}"
|
||||
SelectionChanged="Selector_OnSelectionChanged"
|
||||
|
||||
Reference in New Issue
Block a user