Arun Kumar asked:
I didn't find any code to draw gif in ViewPort3D. All the above axamples are in WPF but all are explain to draw in 2D.
I did not know that you did not know that; the question stated the animation problem. This is a whole different story.
Actually, you need a material to render anything 2D on 3D. You can use the class
Viewport2DVisual3D
:
https://msdn.microsoft.com/en-us/library/system.windows.media.media3d.viewport2dvisual3d%28v=vs.110%29.aspx[
^].
After you define all
Viewport2DVisual3D
properties, you can add you image as the last child. In the article referenced below, there is a code sample demonstrating XAML with 2D
Button
shown as a child of a
Viewport2DVisual3D
instance:
WPF 3D: Part 1 of n[
^].
Don't find code, find documentation and perhaps available answers.
—SA