Windows SideBar

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!

[212 byte] By [BryantLikes] at [2007-12-29]
# 1

You are mixing some things up here.

  • WPF/E is for web browsers.
  • WPF is for Windows Desktop (including Windows Sidebar I guess)
Odegaard at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 2

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).

BryantLikes at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 3
Whoooops you're right! Sorry about that. It's been a while since I looked at sidebars.
Odegaard at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 4

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.

ShawnWildermuth-MVP at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 5

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

Thanks!

BryantLikes at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 6

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

ShawnWildermuth-MVP at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 7
Nice job! Thanks!
BryantLikes at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 8

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!

BryantLikes at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...
# 9
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.
ShawnWildermuth-MVP at 2007-9-4 > top of Msdn Tech,Silverlight (formerly WPF/E),Silverlight (formerly WPF/E) Developer Issues...