VisionProView.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <UserControl x:Class="LampInspectionMachine.Views.VisionProView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:cognexWF="clr-namespace:Cognex.VisionPro;assembly=Cognex.VisionPro.Controls"
  7. xmlns:cognexWF1="clr-namespace:Cognex.VisionPro.ToolGroup;assembly=Cognex.VisionPro.ToolGroup.Controls"
  8. xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  9. xmlns:Viewlocal="clr-namespace:LampInspectionMachine.ViewModels"
  10. xmlns:local="clr-namespace:LampInspectionMachine.Views"
  11. mc:Ignorable="d"
  12. d:DesignHeight="500" d:DesignWidth="800">
  13. <Grid>
  14. <Grid.RowDefinitions>
  15. <RowDefinition />
  16. <RowDefinition Height="Auto"/>
  17. </Grid.RowDefinitions>
  18. <DockPanel Grid.Row="0">
  19. <WindowsFormsHost>
  20. <cognexWF1:CogToolGroupEditV2 x:Name="cogToolBlock" />
  21. </WindowsFormsHost>
  22. </DockPanel>
  23. <StackPanel Grid.Row="1" Orientation="Horizontal">
  24. <Border Background="#0A85D9"
  25. BorderBrush="Black"
  26. BorderThickness="1"
  27. Width="100"
  28. Height="40"
  29. HorizontalAlignment="Left"
  30. Margin="10,5,10,10"
  31. CornerRadius="8">
  32. <Button Content="运行流程"
  33. Background="Transparent"
  34. Foreground="White"
  35. Margin="2"
  36. MinWidth="50"
  37. BorderThickness="0"
  38. Command="{Binding SoftTriggerCommand}" />
  39. </Border>
  40. <Border Background="#0A85D9"
  41. BorderBrush="Black"
  42. BorderThickness="1"
  43. Width="100"
  44. Height="40"
  45. HorizontalAlignment="Left"
  46. Margin="10,5,10,10"
  47. CornerRadius="8">
  48. <Button Content="保存"
  49. Background="Transparent"
  50. Foreground="White"
  51. Margin="2"
  52. MinWidth="50"
  53. BorderThickness="0"
  54. Command="{Binding SaveVPPCommand}" />
  55. </Border>
  56. </StackPanel>
  57. </Grid>
  58. </UserControl>