none
How can I get the parent model of a GeometryModel3D object? RRS feed

  • 问题

  • When I was programming with WPF. I found that I can get GeometryModel3D objects in a Model3DGroup through the children of the Model3DGroup one. But I cann't get a Model3DGroup object via a GeometryModel3D one. Is there any property like "parent" or some method can help me to do this?
    2012年2月22日 9:23

答案

  • No it does not have. WPF does not provide the way to get the parent from GeometryModel3D. Your question is same with: want to get the Collection object from one item in it. You just could invoke the collection obejct Contains method to test if the item in it.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us

    • 已标记为答案 aheroaa 2012年2月23日 7:34
    2012年2月23日 2:51
    版主

全部回复

  • No it does not have. WPF does not provide the way to get the parent from GeometryModel3D. Your question is same with: want to get the Collection object from one item in it. You just could invoke the collection obejct Contains method to test if the item in it.


    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us

    • 已标记为答案 aheroaa 2012年2月23日 7:34
    2012年2月23日 2:51
    版主
  • Thank a lot! I feel so sad as I need to get it.

    To be the best one.

    2012年2月23日 7:35