473,513 Members | 2,668 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XBAP gadget

It seems that we can only embed XBAP Iframe to create a WPF gadget, 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>XeePet 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
Sep 18 '08 #1
2 3142
Look at this blog Steven. This fellow says to use a WPF UserControl - sort
of makes sense:
http://blogs.msdn.com/charles_sterli...oundation.aspx

"Steven Tang" <st***@mediator.comwrote in message
news:7C**********************************@microsof t.com...
It seems that we can only embed XBAP Iframe to create a WPF gadget, 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>XeePet 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

Sep 24 '08 #2
Sorry for later response, I just saw your reply, and the link you provided
pretty help.

Thanks a lot
--
=======================
Steven Tang
SYWWUYU)
**:)
"James Hotmail" wrote:
Look at this blog Steven. This fellow says to use a WPF UserControl - sort
of makes sense:
http://blogs.msdn.com/charles_sterli...oundation.aspx

"Steven Tang" <st***@mediator.comwrote in message
news:7C**********************************@microsof t.com...
It seems that we can only embed XBAP Iframe to create a WPF gadget, 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>XeePet 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
Nov 10 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4102
by: MMA | last post by:
Can an WBA/XBAP directly make a call to database server or does it need to go through the WS? Thanks in Advanec
5
2673
by: dgk | last post by:
From what I've been reading, an XBap application could be really good for a place like mine where everyone will have a PC that has framework 3 loaded and runs IE. The app is downloaded from a...
2
4251
by: Abhi Arora | last post by:
Hi, I need to host an XBAP application inside an Aspx page. I tried adding my aspx page using IFRAME, but it doesnt show up in the browser. When I call the page, it runs without any error. But it...
0
3012
by: Masudur | last post by:
Hi, I been searching net for a while for solution but unable to work. i have few questions regarding xbap applicaion. first of all can i really use wcf service with xbap browser application in...
3
3594
by: =?Utf-8?B?SXpvcmljaA==?= | last post by:
I observed that WCF client running inside Full Trust mode XBAP application can't read byte array over 16384. If return result is bigger than that size, then client simply get null or Nothing in VB...
0
1448
by: | last post by:
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...
2
11287
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
I'm creating a XBAP application and want it take some input from webpage dynamically? what is the best way? how to do it? Best Regards Steven -- ======================= Steven Tang SYWWUYU)
4
2932
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
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...
5
5888
by: =?Utf-8?B?U3RldmVuIFRhbmc=?= | last post by:
It seems that one page XBAP whose Unloaded event never get called, I need put some clearing stuff (I.G stop dispatcher time) when user close browser, it unload event doesn't work, where shall I...
0
7257
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5682
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5084
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3232
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1591
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.