SideBar Gadget and <object /> Tags

I assume that SIdebar is using a mini-IE7 window to display themselves, but I can't seem to get an <object /> tag to work in my gadget. Any idea why that wouldn't work Before I spin my wheels understanding what is happening, I wanted to make sure that there wasn't a security prohibition to using an <object /> or a <embed /> tag.


Answer this question

SideBar Gadget and <object /> Tags

  • render77

    Thanks Jonathan, but we're talking about WPF/E (a web technology not WPF). It looks as though there is some issue with the way that the WPF/E ActiveX objet is dealing with paths.

  • Philski

    WPF/E is just a subset of WPF that's cross-platform/cross-browser. Running them though an IFrame does work.
    Referencing external files will not work. Quoting Brian from the Sidebar Dev team:

    "Samples that access external files will not be able to access those files. This includes images referenced in the XAML and XAML files, even inside the gadget package.

    This is not a security issue, but rather a problem with the way the “WPF/E” control resolves file paths and URLs. Unfortunately, there is no known workaround, such as placing the files on a remote server. Only XAML content embedded in the HTML files will load."


    Here's another example for you that shows both WPF and WPF/E Gadgets


  • Giminiani

    It should work, I'm using ActiveX pretty extensively in my gadget without many problems(though security in Vista can be hard to handle).

    Dan


  • fremontca

    Sidebar doesn't natively support WPF applications, although the guys over there have written Sidebar Styler, which adds this capability.

    If you want to go the IFrame route:

    There's this article which includes sample code and pics.
    And here's a sample WPF Gadget.

  • TalhaAziz

    I'm also trying to figure this out becuase I'm trying to display WPF/E in the Sidebar.

    Thanks!


  • SideBar Gadget and <object /> Tags