ImagePreviewWindow.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl x:Class="TeamAAS_VP.Views.Home.ImagePreviewWindow"
  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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  6. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  8. xmlns:vp="clr-namespace:Cognex.VisionPro;assembly=Cognex.VisionPro.Controls"
  9. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  10. lex:LocalizeDictionary.DesignCulture="zh-CN"
  11. Height="800"
  12. Width="1000"
  13. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  14. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. FontFamily="{DynamicResource DefaultFont}">
  17. <b:Interaction.Triggers>
  18. <b:EventTrigger EventName="Loaded">
  19. <b:InvokeCommandAction Command="{Binding LoadedCommand}" />
  20. </b:EventTrigger>
  21. </b:Interaction.Triggers>
  22. <prism:Dialog.WindowStyle>
  23. <Style TargetType="Window">
  24. <Setter Property="prism:Dialog.WindowStartupLocation"
  25. Value="CenterScreen" />
  26. <Setter Property="WindowStyle"
  27. Value="SingleBorderWindow" />
  28. <Setter Property="ResizeMode"
  29. Value="NoResize" />
  30. <Setter Property="SizeToContent"
  31. Value="Manual" />
  32. <Setter Property="AllowDrop"
  33. Value="True" />
  34. <Setter Property="BorderThickness"
  35. Value="0" />
  36. <Setter Property="ShowInTaskbar"
  37. Value="True" />
  38. <Setter Property="SizeToContent"
  39. Value="WidthAndHeight" />
  40. <Setter Property="WindowState"
  41. Value="Normal" />
  42. <Setter Property="Topmost"
  43. Value="True" />
  44. </Style>
  45. </prism:Dialog.WindowStyle>
  46. <Grid x:Name="gridRender">
  47. <wf:WindowsFormsHost>
  48. <vp:CogRecordDisplay x:Name="display"/>
  49. </wf:WindowsFormsHost>
  50. </Grid>
  51. </UserControl>