|
@@ -1057,7 +1057,118 @@ Source="/FurnaceUI;component/Resources/Images/Controls3/bg1.png" />-->
|
|
|
</Grid>
|
|
|
</TabItem>
|
|
|
<TabItem Width="180" Header="AI-AO" Visibility="{Binding DataContext.AIAOVisibility,RelativeSource={RelativeSource AncestorType=UserControl},UpdateSourceTrigger=PropertyChanged,Converter={StaticResource bool2VisibilityConverter}}" >
|
|
|
+ <Grid Margin="10">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="0.5*" />
|
|
|
+ <ColumnDefinition Width="80" />
|
|
|
+ <ColumnDefinition Width="0.5*" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <GroupBox VerticalAlignment="Top">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <TextBlock Foreground="Black" Text="IN" />
|
|
|
+ </GroupBox.Header>
|
|
|
+ <ListBox FontSize="14"
|
|
|
+ HorizontalContentAlignment="Stretch"
|
|
|
+ VerticalContentAlignment="Stretch"
|
|
|
+ ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
+ ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
+ IsManipulationEnabled="True" Foreground="Black" ItemsSource="{Binding DataContext.AIViewSource, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Grid Height="40">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="45" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ Grid.Column="0"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="1,1,1,1">
|
|
|
+ <TextBlock
|
|
|
+
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding Path=DisplayName}"
|
|
|
+ ToolTip="{Binding Path=DisplayName}" />
|
|
|
+ </Border>
|
|
|
+ <Border
|
|
|
+ Background="White"
|
|
|
+ Grid.Column="1"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="0,1,1,1">
|
|
|
+ <TextBlock HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center" Text="{Binding Path=Value}" ></TextBlock>
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+ </GroupBox>
|
|
|
+
|
|
|
+ <GroupBox Grid.Column="2" VerticalAlignment="Top">
|
|
|
+ <GroupBox.Header>
|
|
|
+ <TextBlock Foreground="Black" Text="OUT" />
|
|
|
+ </GroupBox.Header>
|
|
|
+ <ListBox FontSize="14" HorizontalContentAlignment="Stretch"
|
|
|
+VerticalContentAlignment="Stretch"
|
|
|
+ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
+ScrollViewer.VerticalScrollBarVisibility="Hidden"
|
|
|
+IsManipulationEnabled="True" Foreground="Black" ItemsSource="{Binding DataContext.AOViewSource, RelativeSource={RelativeSource AncestorType=UserControl}}">
|
|
|
+ <ListBox.ItemTemplate>
|
|
|
+ <DataTemplate>
|
|
|
+ <Grid Height="40">
|
|
|
+ <Grid.ColumnDefinitions>
|
|
|
+ <ColumnDefinition Width="*" />
|
|
|
+ <ColumnDefinition Width="auto" />
|
|
|
+ </Grid.ColumnDefinitions>
|
|
|
+ <Border
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="1,1,1,1">
|
|
|
+ <TextBlock
|
|
|
+ HorizontalAlignment="Left"
|
|
|
+ VerticalAlignment="Center"
|
|
|
+ Text="{Binding Path=DisplayName}"
|
|
|
+ ToolTip="{Binding Path=DisplayName}" />
|
|
|
+ </Border>
|
|
|
+
|
|
|
+ <Border
|
|
|
+ Grid.Column="1"
|
|
|
+ Grid.ColumnSpan="2"
|
|
|
+ Padding="5,1"
|
|
|
+ BorderBrush="{DynamicResource DataGrid_Cell_BD}"
|
|
|
+ BorderThickness="0,1,1,1">
|
|
|
+
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <Label HorizontalAlignment="Center" VerticalAlignment="Center" Content="{Binding Path=Value,UpdateSourceTrigger=PropertyChanged}" Width="45"></Label>
|
|
|
+
|
|
|
+ <TextBox Text="{Binding Path=NewValueFloat,UpdateSourceTrigger=PropertyChanged}" Width="45"></TextBox>
|
|
|
+ <Button
|
|
|
+ Height="35"
|
|
|
+ Content="Set"
|
|
|
+ FontSize="14">
|
|
|
+ <i:Interaction.Triggers>
|
|
|
+ <i:EventTrigger EventName="Click">
|
|
|
+ <cal:ActionMessage MethodName="SetAO">
|
|
|
+ <cal:Parameter Value="{Binding}" />
|
|
|
+ </cal:ActionMessage>
|
|
|
+ </i:EventTrigger>
|
|
|
+ </i:Interaction.Triggers>
|
|
|
+ </Button>
|
|
|
+ </StackPanel>
|
|
|
+
|
|
|
+ </Border>
|
|
|
+ </Grid>
|
|
|
+ </DataTemplate>
|
|
|
+ </ListBox.ItemTemplate>
|
|
|
+ </ListBox>
|
|
|
+
|
|
|
+ </GroupBox>
|
|
|
+ </Grid>
|
|
|
</TabItem>
|
|
|
+
|
|
|
</TabControl>
|
|
|
</DataTemplate>
|
|
|
</UserControl.Resources>
|