MainWindow.xaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Window x:Class="WpfInteropSample.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:WpfInteropSample"
  5. Title="MainWindow"
  6. Width="525"
  7. Height="350">
  8. <Grid>
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition />
  11. <ColumnDefinition />
  12. </Grid.ColumnDefinitions>
  13. <Grid.RowDefinitions>
  14. <RowDefinition />
  15. <RowDefinition />
  16. </Grid.RowDefinitions>
  17. <local:D3D11Host x:Name="Host0"
  18. Grid.Row="0"
  19. Grid.Column="0"
  20. Margin="5"
  21. SnapsToDevicePixels="True"
  22. Stretch="Fill" />
  23. <local:D3D11Host x:Name="Host1"
  24. Grid.Row="0"
  25. Grid.Column="1"
  26. Margin="5"
  27. SnapsToDevicePixels="True"
  28. Stretch="Fill" />
  29. <local:D3D11Host x:Name="Host2"
  30. Grid.Row="1"
  31. Grid.Column="0"
  32. Margin="5"
  33. SnapsToDevicePixels="True"
  34. Stretch="Fill" />
  35. <local:D3D11Host x:Name="Host3"
  36. Grid.Row="1"
  37. Grid.Column="1"
  38. Margin="5"
  39. SnapsToDevicePixels="True"
  40. Stretch="Fill" />
  41. </Grid>
  42. </Window>