views:

782

answers:

2

Hello, i am new to silverlight, learning basics now. But i need to implement 3D image manipulation(drag&drop,editing,rotation,resize,zoom in & zoom out). Please explain with corresponding code samples,attachments . Please as soon as possible.

+5  A: 

surendra-chw,

This is a very open-ended question: it will be difficult for people to help you unless you are clear about exactly what you are trying to accomplish (and please explain what you have already tried/learned, if anything). Most importantly, in a question-answer environment like stackoverflow we can't do your work for you.

Silverlight 2.0 does not support any 3D functionality out-of-the-box. I guess you knew that?

You have probably already found Kit3D via google? It attempts to provide a subset of the WPF 3D namespaces/classes to give you a consistent API where possible. It also contains a sample project with a number of different 3D examples in Silverlight.

Another useful source of information would be Charles Petzold's book (you should buy it) and blog. It is mostly about WPF 3D, but the concepts will be applicable to Kit3D (and Silverlight 3.0, presumably, when it's announced next week).

CraigD
A: 

Wait for Silverlight 3. This should be out this summer some time and supports 3D, but your questions aren't related to 3D.

Currently Silverlight 2 supports all of that functionality yo described. To get some information on what this entails I would suggest downloading Blend and playing with the transform propertied, rotation, scale are all a part of that functionality.

As for resize and drag and drop that's a whole other beast. On your control you'll have to add some methods on the event handlers for LeftMouseButtonDown and LeftMouseButtonUp, then capture the mouseposition delta to get which direction and how far to move, then apply that to the transformgroup property of TranslateTransform on the X or Y plane.

You're clearly going to have to do some work to get at what you want to achieve.