Is it possible use xaml in gadget with transparent background ?!

Is it possible use xaml or xbap in gadget with transparent background !

I used iframe to place xaml app. But if i try to change g:background size during Docking or Undocking it is doesn't work properly.

So my gadget is now without background...

Is any way to solve this problem

P.S.And when I'm closing gadget with xaml, sidebar is hiding. Is it bug of side bar



Answer this question

Is it possible use xaml in gadget with transparent background ?!

  • OneScrappyLady

    Thank you for your reply.

    I have been already solved this problem too by using System.Gadget.background instead changing style for g:background.src

    Now it is work proprely.


  • Boulderdude

    If you're only changing the size of g:background, you'll also need to set the body width/height.

    If you're using stylesheets and are changing the applied style/applied stylesheet, Sidebar doesn't pick up on the width/height change. You must always set the body size manually when changing a Gadget size ie:

    document.body.style.width = <value>;
    document.body.style.height = <value>;

    Sidebar also doesn't pick up on document.body.style.zoom changes. You have to manually alter the width/height if you change it - otherwise the contents change size, but the Gadget size stays the same.

    Another bug you'll want to know about, if you reduce the Gadget width when it's attached to the Sidebar, it becomes detached from the Sidebar. I wrote an article on how to work around this.

    Another bug, if you're changing the background, always set the background manually. If it's done though stylesheets, you'll sometimes end up with image corruption. ie:

    System.Gadget.background = "url(...)";

  • Is it possible use xaml in gadget with transparent background ?!