Bryant Likes

Is it possible to run WPF/E in a Windows SideBar Gadget I was hoping to build a demo of a SideBar Gadget that plays video, but I can't even get a basic WPF/E file to render in the SideBar.

Thanks!



Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Odegaard

You are mixing some things up here.

  • WPF/E is for web browsers.
  • WPF is for Windows Desktop (including Windows Sidebar I guess)




Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Bryant Likes

Actually I'm not. :)

Windows Sidebar gadgets are made up of html + javascript. So WPF/E would be a great fit (if I could get it to work).





Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Odegaard

Whoooops you're right! Sorry about that. It's been a while since I looked at sidebars.



Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Shawn Wildermuth-MVP

On the face of it, SideBar Gadgets should be able to use WPF/E, but in my testing I couldn't get it to work. My guess is that there is some prohibition to using the <object /> tag...but I am not sure what they are using to host the gadget.

Perhaps someone in WPF/E could chime in, but I think the real answer is to be had over on the SideBar forums.






Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Bryant Likes

Good idea, I'll try posting my question over there.

Thanks!





Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Shawn Wildermuth-MVP

Actually, I got it working with a small sample. Here is a link to my blog entry with a simple example:

http://adoguy.com/2007/01/30/WPF_E_In_a_Sidebar_Gadget.aspx






Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Bryant Likes

Nice job! Thanks!



Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Bryant Likes

Okay, so now I can get the WPF/E loaded and everything works except I can't reference images or videos, even if they are in the same folder. I know I read about this somewhere, but is this a known bug and will it be fixed anytime soon

Thanks!





Re: Silverlight (formerly WPF/E) Developer Issues Windows SideBar

Shawn Wildermuth-MVP

I don't know how Sidebar is hosting hte HTML, but I have a question over there to try and and make sense of the problem. In the example I posted, I had to embed the XAML in the HTML to make it work so it looks like all file access to the WPF/E host is a problem. The known issue with videos needing to be from the same protocol (e.g. http if the page is http, https if the page is https, file if the page is file) is something I think they're working on, but probably isn't the problem here since XAML source and images don't have the requirement.