56 lines
3.5 KiB
XML
56 lines
3.5 KiB
XML
<UserControl x:Class="PLCSharp.VVMs.Vision.VisionFlowHandler.Algorithm.PointToPointDistance"
|
|
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:PLCSharp.VVMs.Vision.VisionFlowHandler"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:vision="clr-namespace:PLCSharp.VVMs.Vision"
|
|
mc:Ignorable="d"
|
|
d:DataContext="{d:DesignInstance Type=vision:VisionConfigViewModel}"
|
|
d:DesignHeight="200" d:DesignWidth="300">
|
|
<ScrollViewer VerticalScrollBarVisibility="Auto">
|
|
<StackPanel>
|
|
<GroupBox Header="参数">
|
|
<Grid Margin="5">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="80" />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Row="0" Text="点1变量" VerticalAlignment="Center" />
|
|
<ComboBox Grid.Row="0" Grid.Column="1"
|
|
ItemsSource="{Binding AllVariables}"
|
|
SelectedValue="{Binding SelectVisionFlow.StringParams[Point1Var], Mode=TwoWay}"
|
|
SelectedValuePath="Name" DisplayMemberPath="Name" />
|
|
<TextBlock Grid.Row="1" Text="点2变量" VerticalAlignment="Center" />
|
|
<ComboBox Grid.Row="1" Grid.Column="1"
|
|
ItemsSource="{Binding AllVariables}"
|
|
SelectedValue="{Binding SelectVisionFlow.StringParams[Point2Var], Mode=TwoWay}"
|
|
SelectedValuePath="Name" DisplayMemberPath="Name" />
|
|
<TextBlock Grid.Row="2" Text="结果变量" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="2" Grid.Column="1" Text="{Binding SelectVisionFlow.StringParams[ResultVar], Mode=TwoWay, =点到点距离}" />
|
|
<TextBlock Grid.Row="3" Text="距离" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="3" Grid.Column="1"
|
|
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[PointDist_Distance], Mode=OneWay}"
|
|
IsReadOnly="True" Background="#FFF0F0F0" />
|
|
<TextBlock Grid.Row="4" Text="ΔX" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="4" Grid.Column="1"
|
|
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[PointDist_DeltaX], Mode=OneWay}"
|
|
IsReadOnly="True" Background="#FFF0F0F0" />
|
|
<TextBlock Grid.Row="5" Text="ΔY" VerticalAlignment="Center" />
|
|
<TextBox Grid.Row="5" Grid.Column="1"
|
|
Text="{Binding SelectedVisionFunction.Params.ResultDoubles[PointDist_DeltaY], Mode=OneWay}"
|
|
IsReadOnly="True" Background="#FFF0F0F0" />
|
|
</Grid>
|
|
</GroupBox>
|
|
</StackPanel>
|
|
</ScrollViewer>
|
|
</UserControl>
|