| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <UserControl x:Class="TeamAAS_VP.Views.Calibration.CalibrationEditVision"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:prism="http://prismlibrary.com/"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
- xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
- xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
- xmlns:vp="clr-namespace:Cognex.VisionPro.ToolBlock;assembly=Cognex.VisionPro.ToolGroup.Controls"
- xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
- xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Calibration"
- xmlns:convert="clr-namespace:TeamAAS_VP.ValueConverter"
- xmlns:lex="http://wpflocalizeextension.codeplex.com"
- lex:LocalizeDictionary.DesignCulture="zh-CN"
- lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
- lex:ResxLocalizationProvider.DefaultDictionary="Lang"
- prism:ViewModelLocator.AutoWireViewModel="True"
- mc:Ignorable="d"
- d:DataContext="{d:DesignInstance Type=vm:CalibrationEditVisionViewModel}"
- d:Height="600"
- d:Width="1024"
- d:Background="White"
- FontFamily="{DynamicResource DefaultFont}">
- <b:Interaction.Triggers>
- <b:EventTrigger EventName="Loaded">
- <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
- </b:EventTrigger>
- </b:Interaction.Triggers>
- <UserControl.Resources>
- <convert:JogConverter x:Key="JogConverter" />
- </UserControl.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="auto" />
- </Grid.RowDefinitions>
- <Button Grid.Row="0"
- Content="{materialDesign:PackIcon Kind=ArrowLeftCircle}"
- Width="50"
- HorizontalAlignment="Left"
- VerticalAlignment="Top"
- ToolTip="{lex:Loc 返回}"
- Style="{StaticResource MaterialDesignIconButton}"
- Command="{Binding BackCommand}" />
- <StackPanel Grid.Row="0"
- Orientation="Horizontal"
- Margin="50,0"
- VerticalAlignment="Center">
- <materialDesign:PackIcon Kind="CrosshairsGps"
- Width="30"
- Height="30" />
- <TextBlock Text="{Binding SelectCalibration.Name,Converter={StaticResource StringFormatConverter},ConverterParameter=' [{0}] '}"
- VerticalAlignment="Center" />
- <TextBlock Text="{lex:Loc 校准视觉处理,Converter={StaticResource StringFormatConverter},ConverterParameter='- {0}'}"
- VerticalAlignment="Center" />
- </StackPanel>
- <materialDesign:DrawerHost Grid.Row="1"
- IsEnabled="{Binding IsAllowEdit}"
- OpenMode="Standard"
- x:Name="DrawerHost">
- <materialDesign:DrawerHost.RightDrawerContent>
- <uControl:RobotManual x:Name="robotManual" />
- </materialDesign:DrawerHost.RightDrawerContent>
- <Grid>
- <wf:WindowsFormsHost Grid.Column="0"
- Margin="0,0,0,35">
- <vp:CogToolBlockEditV2 x:Name="ToolBlockEditV2" />
- </wf:WindowsFormsHost>
- <Button Content="{lex:Loc 运行流程}"
- Width="100"
- HorizontalAlignment="Left"
- VerticalAlignment="Bottom"
- Margin="5,3"
- Command="{Binding RunVisionProcessCommand}" />
- </Grid>
- </materialDesign:DrawerHost>
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Right"
- VerticalAlignment="Bottom">
- <ToggleButton materialDesign:ToggleButtonAssist.OnContent="{materialDesign:PackIcon Kind=ArrowRight}"
- Content="{materialDesign:PackIcon Kind=RobotIndustrial}"
- IsEnabled="{Binding IsAllowEdit}"
- Style="{StaticResource MaterialDesignActionToggleButton}"
- ToolTip="{lex:Loc 机器人步进}"
- Margin="2,0"
- IsChecked="{Binding IsRightDrawerOpen,ElementName=DrawerHost}" />
- </StackPanel>
- <StackPanel Grid.Row="2"
- Orientation="Horizontal"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Margin="20">
- <Button Content="{lex:Loc 下一步}"
- IsEnabled="{Binding IsAllowEdit}"
- MinWidth="150"
- Margin="10,0"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- materialDesign:ButtonAssist.CornerRadius="10"
- Style="{StaticResource MaterialDesignRaisedButton}"
- Command="{Binding NextCommand}" />
- </StackPanel>
- </Grid>
- </UserControl>
|