Posted By: Viashivan | Nov 5th, 2008 @ 8:14 AM
page 1 of 1
Comments: 12 | Views: 1256
Hi,
I'm learning how Silverlight/WPFapplication/Direct3D interact between themselves...
Sorry but I haven't a lot experience about this issues, so my question is:
- IS IT POSSIBLE, WITH SILVERLIGHT, TO RENDER WPF FILES IN A DIREC3D/WIN32 APPLICATION? HOW CAN DO IT?
Thanks a lots,
bye,
Carmelo.
stevo_
stevo_
Human after all
no.. silverlight runs in the browser.. silverlight has to run on platforms that don't run win32, wpf or anything like it.. if you want a wpf browser app, then you should look into xbap.
Actually, you can do it just fine. You just need to host a web browser control. You can then get two way communication between your app and SL using the window.external interface.

You might be better off using WPF though. SL is a seriously gimped technology.
stevo_
stevo_
Human after all
Uh I'm pretty sure hes like many asking if you can invoke wpf / win32 from silverlight.. why would you have a wpf app with a browser control that hosts silverlight.. that makes no sense.

Edit: and silverlight isn't a gimped technology.. you are clearly looking at it from the wrong perspective.
Look into using Perfect Mind, I'm doing so right now and its a great tool for develop graphically pleasing WPF applications.
Hosting Silverlight in an embeded web browser is a legitimate way to integrate SL into your native apps and isn't a big deal really. With it you can also do easy 2 way communication between SL and native code. What more do you want?

As far as SL being gimped, yes, I believe it is gimped. All you can do with it (at this point) is move three basic shapes around (line, rectangle, ellipse). Using path shapes require a agree of artistricry that most developers don't posses.

The control library is seriously weak. There are no menus, not even content menus. No copy/cut/paste/delete context menus in edit controls. No text with a link in it. No rich text. No offical mouse wheel support. No right mouse button support. Even the standard controls act weird. Click a list box and drag and it doesn't scroll the contents.

It's full of weird stuff. The object model seems wrong. Some proeprties exist which do nothing. Insome situation other properties work, but not in other situations. There is no bovious way to figure this stuff out without just learning what works and what doesn't. Some properties are animatable, while other are not, with no guide of clue as to why.

The of course there is the whole problem with OOD I mentioned in a previous post.

Hopefully MS will fix this stuff.
I think you have to look at Silverlight as a Flash replacement, not a be-all-end-all of web apps.  That's what XBAPs are for.
Moonlight is the Linux version of Silverlight.  I would imagine that code that works on one would work on the other.
Yeah, give Moonlight a try and if you're still unsatisfied, and wanting a simpler solution, www.perfectmind.com
stevo_
stevo_
Human after all
bye then..
page 1 of 1
Comments: 12 | Views: 1256
Microsoft Communities