469,630 Members | 1,230 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,630 developers. It's quick & easy.

XBAP Gadget issue

It seems that we can only create a WPF gadget by embed XBAP Iframe, the WPF
application will not
work at this time (I tried Stanimir's demo, it is not different to a
standalone WPF application, it will
not be able to dock into the sidebar when move the "Hello gadget" closing to
the sidebar, I don't
know if it is still a sidebar gadget if it could not dock into the sidebar).

The problem I met in XBAP gadget is that it is difficult to set padding so
that the gadget could be
drag out of the sidebar. the size of my XBAP is 190X145, my html launcher is
<html>
<head>
<title>XBAP Gadget</title>

<style>
body {
width:145;
height:190;
padding:0;
margin:0;
background:black;
}
</style>
</head>
<body>
<iframe height="190"
width="145"
src="XbapGadget.xbap" />
</body>
</html>

when it is running, it just dock into the sidebar and the drag handle will
not show up no
matter cursor move to anywhere on the gadget. I tried change the padding or
margin,
the drag handle did show up, but the untransparentable background make the
gadget
pretty ugly.

I tried other gadget came with the Vista such as clock, any position of the
gadget is draggable,
how did they implement that, Is it possible in WPF XBAP gadget?

Best Regards
Steven

Sep 20 '08 #1
0 1277

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by dgk | last post: by
3 posts views Thread by =?Utf-8?B?SXpvcmljaA==?= | last post: by
reply views Thread by =?Utf-8?B?RGFyS293?= | last post: by
2 posts views Thread by Steven Tang | last post: by
2 posts views Thread by =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post: by
4 posts views Thread by =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post: by
5 posts views Thread by =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.