124 lines
6.8 KiB
XML
124 lines
6.8 KiB
XML
<UserControl x:Class="Views.Vision.V_GrayRange"
|
|
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:Views.Vision"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:model="clr-namespace:Model.Vision;assembly=Model"
|
|
xmlns:myconver="clr-namespace:Community;assembly=Community"
|
|
d:DesignHeight="300" d:DesignWidth="500" mc:Ignorable="d">
|
|
|
|
<GroupBox Name="GB" Header="{Binding SelectVEI.VEIname}">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Border>
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Button Grid.Row="1" Grid.ColumnSpan="4" Margin="0,2" Background="{Binding BorderBrush, ElementName=TAB1}" Command="{Binding GetImageCommand}" Style="{DynamicResource commBtn}">
|
|
<Viewbox>
|
|
<ContentControl Content="相机采集" />
|
|
</Viewbox>
|
|
</Button>
|
|
<TextBox Grid.ColumnSpan="3" VerticalContentAlignment="Center" Background="Transparent" Foreground="White" IsReadOnly="True" Text="{Binding ImgPath}" />
|
|
<Button Grid.Column="4" Grid.ColumnSpan="2" Margin="1,3"
|
|
Background="{Binding BorderBrush, ElementName=TAB1}"
|
|
Command="{Binding LoadingImageCommand}"
|
|
Content="加载图片"
|
|
Style="{DynamicResource commBtn}" />
|
|
|
|
<CheckBox Grid.Row="2" Grid.ColumnSpan="4"
|
|
HorizontalAlignment="Center"
|
|
BorderBrush="{Binding BorderBrush, ElementName=GB}"
|
|
Content="使用本地图像" Foreground="White"
|
|
IsChecked="{Binding EnableLocalImage}"
|
|
Style="{StaticResource CheckBoxStyle1}" />
|
|
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="1">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Row="0" Margin="1"
|
|
Background="{Binding BorderBrush, ElementName=TAB1}"
|
|
Command="{Binding LocationSettingCommandEx}"
|
|
Content="区域设置" FontSize="20"
|
|
Style="{DynamicResource commBtn}" />
|
|
|
|
<Button Grid.Row="1" Margin="1"
|
|
Background="{Binding BorderBrush, ElementName=TAB1}"
|
|
Command="{Binding LocationCheckCommandEx}"
|
|
Content="测试" FontSize="20"
|
|
Style="{DynamicResource commBtn}" />
|
|
<Button Grid.Row="1" Grid.Column="1" Margin="1" Background="{Binding BorderBrush, ElementName=TAB1}" Command="{Binding SaveInspectPerCommand}" Style="{DynamicResource commBtn}">
|
|
<Viewbox>
|
|
<Label Content="保存" Foreground="White" />
|
|
</Viewbox>
|
|
</Button>
|
|
<Border Grid.Row="2" Grid.RowSpan="3" Grid.ColumnSpan="4">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
<RowDefinition />
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
<ColumnDefinition />
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Foreground="White" Text="Min" />
|
|
<TextBox Grid.Column="1" VerticalAlignment="Center" Background="Transparent" Foreground="White" Text="{Binding SelectModel.MyROI.ShapeA_Min}" />
|
|
<TextBlock Grid.Row="0" Grid.Column="2" HorizontalAlignment="Right"
|
|
VerticalAlignment="Center" FontSize="16" Foreground="White"
|
|
Text="Max" />
|
|
<TextBox Grid.Row="0" Grid.Column="3" VerticalAlignment="Center" Background="Transparent" Foreground="White" Text="{Binding SelectModel.MyROI.ShapeA_Max}" />
|
|
|
|
<TextBlock Grid.Row="3" HorizontalAlignment="Right" VerticalAlignment="Center" FontSize="16" Foreground="White" Text="面积下限" />
|
|
<TextBox Grid.Row="3" Grid.Column="1" VerticalAlignment="Center" Background="Transparent" Foreground="White" Text="{Binding SelectModel.MyROI.ShapeD_Min}" />
|
|
<TextBlock Grid.Row="3" Grid.Column="2" HorizontalAlignment="Right"
|
|
VerticalAlignment="Center" FontSize="16" Foreground="White"
|
|
Text="面积上限" />
|
|
<TextBox Grid.Row="3" Grid.Column="3" VerticalAlignment="Center" Background="Transparent" Foreground="White" Text="{Binding SelectModel.MyROI.ShapeD_Max}" />
|
|
|
|
</Grid>
|
|
</Border>
|
|
|
|
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</GroupBox>
|
|
|
|
</UserControl>
|