<Viewport2DVisual3D>
<Viewport2DVisual3D.Transform>
<Transform3DGroup>
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="Win1Angle" Angle="0" Axis="0, 1, 0" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
<ScaleTransform3D x:Name="ScaleUp" />
<ScaleTransform3D x:Name="ScaleDown" />
<TranslateTransform3D x:Name="MoveCenter1" />
</Transform3DGroup>
</Viewport2DVisual3D.Transform>
<!-- The Geometry, Material, and Visual for the Viewport2DVisual3D -->
<Viewport2DVisual3D.Geometry>
<!-- positions of triangle 0 1 2 3 -->
<MeshGeometry3D Positions="-.78,.58,0 -.78,-.58,0 .78,-.58,0 .78,.58,0"
TextureCoordinates="0,0 0,1 1,1 1,0"
TriangleIndices="0 1 2 0 2 3" />
</Viewport2DVisual3D.Geometry>
<Viewport2DVisual3D.Material>
<DiffuseMaterial Viewport2DVisual3D.IsVisualHostMaterial="True" Brush="White"/>
</Viewport2DVisual3D.Material>
<Grid x:Name="grdHolder1" VerticalAlignment="Center" HorizontalAlignment="Center" ClipToBounds="False" Opacity="1" />
</Viewport2DVisual3D>
我在我的 WPF 表单中使用 3d。我的表单是用户控件。在运行时,我只是创建用户控件的实例并添加到视口中的 grdHolder1。但是组合框项目与组合框不成比例。如何使其成比例?
任何人!!!!?