0

I have integrated WPF control in Windows form using ElementHost. The WPF control contains 3D view of an obj file from 3DS Max. When the windows form is resized, the content inside the ElelmentHost displays more than the area specified.

<UserControl.Resources> 
   <ImageBrush x:Key="ImageBrush5" AlignmentX="Center" AlignmentY="Center" />
</UserControl.Resources>
<Grid>
    <Viewport3D x:Name="viewport" SnapsToDevicePixels="True">         
       <Viewport3D.Camera> 

Is it possible to avoid this so that the same area is displayed in different windows size?

StepUp
  • 36,391
  • 15
  • 88
  • 148
AUser123
  • 651
  • 1
  • 7
  • 21

0 Answers0