131 lines
7.0 KiB
XML
131 lines
7.0 KiB
XML
<UserControl x:Class="VisionUI.ChildImageSettingView"
|
|
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:VisionUI"
|
|
xmlns:visionCommon="clr-namespace:VisionCommon;assembly=VisionCommon"
|
|
xmlns:view="clr-namespace:Aurora.View;assembly=Aurora"
|
|
x:Name="childImageSettingView"
|
|
Width="900" Height="720"
|
|
mc:Ignorable="d"
|
|
IsVisibleChanged="UserControl_IsVisibleChanged">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
|
|
</ResourceDictionary.MergedDictionaries>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="50"/>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="70"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="50"/>
|
|
<ColumnDefinition Width="1*"/>
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!--Remove/Add Row Button-->
|
|
<Grid Grid.Row="1" Grid.Column="0" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Vertical"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Button Style="{StaticResource styleBtnPlusMinus}" Width="25" Height="25"
|
|
Click="Click_RemoveRow">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_minus.png"/>
|
|
</Button>
|
|
<Grid Height="10"/>
|
|
<Button Style="{StaticResource styleBtnPlusMinus}" Width="25" Height="25"
|
|
Click="Click_AddRow">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_plus.png"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!--Remove/Add Col Button-->
|
|
<Grid Grid.Row="0" Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<StackPanel Orientation="Horizontal"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Button Style="{StaticResource styleBtnPlusMinus}" Width="25" Height="25"
|
|
Click="Click_RemoveCol">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_minus.png"/>
|
|
</Button>
|
|
<Grid Width="10"/>
|
|
<Button Style="{StaticResource styleBtnPlusMinus}" Width="25" Height="25"
|
|
Click="Click_AddCol">
|
|
<Image Style="{StaticResource styleImgLightPlusMinus}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/icon_plus.png"/>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
|
|
<!--RowColumn Matrix-->
|
|
<Grid Grid.Row="1" Grid.Column="1" Name="gridRowCols" ShowGridLines="True" Margin="0,0,30,10"/>
|
|
|
|
<!--Buttons-->
|
|
<StackPanel Grid.Row="2" Grid.ColumnSpan="2" Margin="10,5,20,10" Orientation="Horizontal" HorizontalAlignment="Right">
|
|
<Button Style="{StaticResource styleBtnPatternSetting}"
|
|
Click="Click_Reload">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Style="{StaticResource stylePatternButtonImage}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_loading_arrow.png"/>
|
|
<TextBlock Style="{StaticResource stylePatternButtonTextBlock}">
|
|
<Run Text="{Binding [Reload], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<Button Style="{StaticResource styleBtnPatternSetting}" Width="125"
|
|
Click="Click_FlyingGrab">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Style="{StaticResource stylePatternButtonImage}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_apply.png"/>
|
|
<TextBlock Style="{StaticResource stylePatternButtonTextBlock}">
|
|
<Run Text="{Binding [FlyingGrab], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<Button Style="{StaticResource styleBtnPatternSetting}"
|
|
Click="Click_Verify">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Style="{StaticResource stylePatternButtonImage}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_magic_wand.png"/>
|
|
<TextBlock Style="{StaticResource stylePatternButtonTextBlock}">
|
|
<Run Text="{Binding [Verify], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<Button Style="{StaticResource styleBtnPatternSetting}"
|
|
Click="Click_Save">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Style="{StaticResource stylePatternButtonImage}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_ok.png"/>
|
|
<TextBlock Style="{StaticResource stylePatternButtonTextBlock}">
|
|
<Run Text="{Binding [Save], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
|
|
<Button Style="{StaticResource styleBtnPatternSetting}"
|
|
Click="Click_Close">
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
<Image Style="{StaticResource stylePatternButtonImage}"
|
|
Source="pack://application:,,,/VisionCommonUI;component/Icons/ColorIcons/img_cancel.png"/>
|
|
<TextBlock Style="{StaticResource stylePatternButtonTextBlock}">
|
|
<Run Text="{Binding [Close], Source={StaticResource langTokens}, Mode=OneWay}"/>
|
|
</TextBlock>
|
|
</StackPanel>
|
|
</Button>
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|