<GeometryModel3D x:Name="reflctionChild0" Geometry="{StaticResource geometry}" > <GeometryModel3D.Material> <DiffuseMaterial> <DiffuseMaterial.Brush> <VisualBrush Visual="{Binding ElementName=viewport2DVisual3D0, Path=Visual}"/> </DiffuseMaterial.Brush> </DiffuseMaterial> </GeometryModel3D.Material> <GeometryModel3D.Transform>上面这段代码怎么转成后台c#代码啊? MyViewport2DVisual3D.Material = new DiffuseMaterial(new VisualBrush() { Visual=? //这个地方赋值Viewport2DVisual3D如果是前台声明的就可以..而new Viewport2DVisual3D 一个就报错...求高手解答一下 } ); };
- 1 回答
- 0 关注
- 821 浏览
添加回答
举报
0/150
提交
取消