<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>上面這段代碼怎么轉(zhuǎn)成后臺(tái)c#代碼??? MyViewport2DVisual3D.Material = new DiffuseMaterial(new VisualBrush() { Visual=? //這個(gè)地方賦值Viewport2DVisual3D如果是前臺(tái)聲明的就可以..而new Viewport2DVisual3D 一個(gè)就報(bào)錯(cuò)...求高手解答一下 } ); };
1 回答

慕俠2389804
TA貢獻(xiàn)1719條經(jīng)驗(yàn) 獲得超6個(gè)贊
new binding(){...}
BindingOperations.SetBinding(...
- 1 回答
- 0 關(guān)注
- 847 瀏覽
添加回答
舉報(bào)
0/150
提交
取消