CalibrationDistortion.xaml 4.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <UserControl x:Class="TeamAAS_VP.Views.Calibration.CalibrationDistortion"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:prism="http://prismlibrary.com/"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  10. xmlns:vp="clr-namespace:Cognex.VisionPro.CalibFix;assembly=Cognex.VisionPro.CalibFix.Controls"
  11. xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
  12. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Calibration"
  13. xmlns:convert="clr-namespace:TeamAAS_VP.ValueConverter"
  14. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  15. lex:LocalizeDictionary.DesignCulture="zh-CN"
  16. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  17. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  18. prism:ViewModelLocator.AutoWireViewModel="True"
  19. mc:Ignorable="d"
  20. d:DataContext="{d:DesignInstance Type=vm:CalibrationDistortionViewModel}"
  21. d:Height="600"
  22. d:Width="1024"
  23. d:Background="White"
  24. FontFamily="{DynamicResource DefaultFont}">
  25. <b:Interaction.Triggers>
  26. <b:EventTrigger EventName="Loaded">
  27. <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
  28. </b:EventTrigger>
  29. </b:Interaction.Triggers>
  30. <Grid>
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="auto" />
  33. <RowDefinition Height="*" />
  34. <RowDefinition Height="auto" />
  35. </Grid.RowDefinitions>
  36. <Button Grid.Row="0"
  37. Content="{materialDesign:PackIcon Kind=ArrowLeftCircle}"
  38. Width="50"
  39. HorizontalAlignment="Left"
  40. VerticalAlignment="Top"
  41. ToolTip="{lex:Loc 返回}"
  42. Style="{StaticResource MaterialDesignIconButton}"
  43. Command="{Binding BackCommand}" />
  44. <StackPanel Grid.Row="0"
  45. Orientation="Horizontal"
  46. Margin="50,0"
  47. VerticalAlignment="Center">
  48. <materialDesign:PackIcon Kind="CrosshairsGps"
  49. Width="30"
  50. Height="30" />
  51. <TextBlock Text="{Binding SelectCalibration.Name,Converter={StaticResource StringFormatConverter},ConverterParameter=' [{0}] '}"
  52. VerticalAlignment="Center" />
  53. <TextBlock Text="- 图像畸变校准"
  54. VerticalAlignment="Center" />
  55. </StackPanel>
  56. <materialDesign:DrawerHost Grid.Row="1"
  57. IsEnabled="{Binding IsAllowEdit}"
  58. OpenMode="Standard"
  59. x:Name="DrawerHost">
  60. <materialDesign:DrawerHost.RightDrawerContent>
  61. <uControl:PlcRobotManual x:Name="robotManual" />
  62. </materialDesign:DrawerHost.RightDrawerContent>
  63. <Grid>
  64. <wf:WindowsFormsHost Grid.Column="0"
  65. Margin="0,0,0,35">
  66. <vp:CogCalibCheckerboardEditV2 x:Name="CalibCheckerboardEditV2" />
  67. </wf:WindowsFormsHost>
  68. <Button Content="{lex:Loc 运行流程}"
  69. Width="100"
  70. HorizontalAlignment="Left"
  71. VerticalAlignment="Bottom"
  72. Margin="5,3"
  73. Command="{Binding RunCommand}" />
  74. </Grid>
  75. </materialDesign:DrawerHost>
  76. <StackPanel Grid.Row="2"
  77. Orientation="Horizontal"
  78. HorizontalAlignment="Center"
  79. VerticalAlignment="Center"
  80. Margin="20">
  81. <Button Content="{lex:Loc 下一步}"
  82. IsEnabled="{Binding IsAllowEdit}"
  83. MinWidth="150"
  84. Margin="10,0"
  85. HorizontalAlignment="Center"
  86. VerticalAlignment="Center"
  87. materialDesign:ButtonAssist.CornerRadius="10"
  88. Style="{StaticResource MaterialDesignRaisedButton}"
  89. Command="{Binding NextCommand}" />
  90. </StackPanel>
  91. </Grid>
  92. </UserControl>