ImageDisplay.xaml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <UserControl x:Class="TeamAAS_VP.Views.Product.ImageDisplay"
  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:wf="clr-namespace:System.Windows.Forms.Integration;assembly=WindowsFormsIntegration"
  6. xmlns:vp="clr-namespace:Cognex.VisionPro;assembly=Cognex.VisionPro.Controls"
  7. xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
  8. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:vm="clr-namespace:TeamAAS_VP.ViewModels.Product"
  11. xmlns:b="http://schemas.microsoft.com/xaml/behaviors"
  12. xmlns:sys="clr-namespace:System;assembly=mscorlib"
  13. xmlns:uControl="clr-namespace:TeamAAS_VP.Controls"
  14. xmlns:localbehaviors="clr-namespace:TeamAAS_VP.Behaviors"
  15. xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
  16. xmlns:lex="http://wpflocalizeextension.codeplex.com"
  17. lex:LocalizeDictionary.DesignCulture="zh-CN"
  18. lex:ResxLocalizationProvider.DefaultAssembly="TeamAAS-VP"
  19. lex:ResxLocalizationProvider.DefaultDictionary="Lang"
  20. prism:ViewModelLocator.AutoWireViewModel="True"
  21. mc:Ignorable="d"
  22. d:DataContext="{d:DesignInstance Type=vm:AutoCorrectLockPointViewModel}"
  23. d:Height="768"
  24. d:Width="1024"
  25. d:Background="White"
  26. FontFamily="{DynamicResource DefaultFont}">
  27. <prism:Dialog.WindowStyle>
  28. <Style TargetType="Window">
  29. <Setter Property="prism:Dialog.WindowStartupLocation"
  30. Value="CenterScreen" />
  31. <Setter Property="AllowDrop"
  32. Value="True" />
  33. <Setter Property="ShowInTaskbar"
  34. Value="True" />
  35. <Setter Property="Width"
  36. Value="500" />
  37. <Setter Property="Height"
  38. Value="400" />
  39. <!--<Setter Property="SizeToContent"
  40. Value="WidthAndHeight" />-->
  41. <!--<Setter Property="WindowState"
  42. Value="Maximized" />-->
  43. <Setter Property="Topmost"
  44. Value="True" />
  45. </Style>
  46. </prism:Dialog.WindowStyle>
  47. <wf:WindowsFormsHost Grid.Column="0"
  48. Margin="5">
  49. <vp:CogRecordDisplay x:Name="display" />
  50. </wf:WindowsFormsHost>
  51. </UserControl>