S
Steven Tang
I'm creating WPF gadget by embed XBAP Iframe:
1. Is it possible that create Pure WPF (non-XBAP) which could
auto dock into the Vista sidebar when dragging the WPF application
near Sidebar?
2. My current approach is using XBAP inside the iFram,
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. I.E., 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.
Any hints to make an ideal WPF gadget?
Best Regards
Steven
1. Is it possible that create Pure WPF (non-XBAP) which could
auto dock into the Vista sidebar when dragging the WPF application
near Sidebar?
2. My current approach is using XBAP inside the iFram,
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. I.E., 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.
Any hints to make an ideal WPF gadget?
Best Regards
Steven