473,785 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XBAP Gadget


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:blac k;
}
</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
untransparentab le background make the gadget pretty ugly.

Any hints to make an ideal WPF gadget?

Best Regards
Steven

--
=============== ========
Steven Tang
SYWWUYU)
**:)
Oct 22 '08 #1
4 2947
Hello,

Welcome to Microsoft Newsgroup Support Service! My name is Marco Zhou. It's
my pleasure to work with you on this thread.

For your first question, the simple answer is no, there is an option to
wrap WPF content inside a Windows Forms UserControl, and expose this
UserControl as ActiveX control so that it could be consumable by HTML
container (aka sidebar container), but this is not a pure WPF solution. I
think you will be more successful if you choose Silverlight rather than WPF
because Silverlight provides much better and integrated support in HTML
interop.

For your second question, I don't fully understand which issue you are
referring to, in particular what you mean by "drag out of the sidebar". If
you mean that the hosted XBAP content cannot be stretched to fill its
available space as its neighboring HTML content does, then this is a known
issue.

When hosting WPF content in native container such as Windows Vista sidebar
container, due to the fact that WPF uses device independent pixels, but the
native HTML container use physical pixels, so both of WPF content and
native HTML content will be stretched up and down unequally. One simple fix
is to use System.Windows. Controls.Viewbo x control to wrap the root element
of WPF content, so that the content can be stretched out as it is.

If you have any further questions on this issue, free feel to ask here, we
are glad to answer them.

--------------------------------------------------
Best regards,
Macro Zhou (v-*****@online.mi crosoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 22 '08 #2
Hi Marco,
Thank you very much for answering my question. The reason that I didn't
use
Silverlight is that my gadget will talk to non-clr version native DLL to
retrieve
some video data, and SL doesn't support this. Am I right?
The issue I mentioned before was that the Gadget would just dock inside
the sidebar
and it could not draggable by using padding = 0 and margin = 0, If I adjust
the padding or/and margin value bigger than 0, there will be a border with
the gadget where could show drag handle, but the border is not transparent
and it ruins the
visual of the Gadget.
<style>
body {
width:145;
height:190;
padding:0;
margin:0;
background:blac k;
}

If using Viewbox control to wrap the root of WPF content, will the
Gadget still
draggable and without visual ruined? Could you explain more detail on how to
do this?

All the best.
--
=============== ========
Steven Tang
SYWWUYU)
**:)
"Marco Zhou [MSFT]" wrote:
Hello,

Welcome to Microsoft Newsgroup Support Service! My name is Marco Zhou. It's
my pleasure to work with you on this thread.

For your first question, the simple answer is no, there is an option to
wrap WPF content inside a Windows Forms UserControl, and expose this
UserControl as ActiveX control so that it could be consumable by HTML
container (aka sidebar container), but this is not a pure WPF solution. I
think you will be more successful if you choose Silverlight rather than WPF
because Silverlight provides much better and integrated support in HTML
interop.

For your second question, I don't fully understand which issue you are
referring to, in particular what you mean by "drag out of the sidebar". If
you mean that the hosted XBAP content cannot be stretched to fill its
available space as its neighboring HTML content does, then this is a known
issue.

When hosting WPF content in native container such as Windows Vista sidebar
container, due to the fact that WPF uses device independent pixels, but the
native HTML container use physical pixels, so both of WPF content and
native HTML content will be stretched up and down unequally. One simple fix
is to use System.Windows. Controls.Viewbo x control to wrap the root element
of WPF content, so that the content can be stretched out as it is.

If you have any further questions on this issue, free feel to ask here, we
are glad to answer them.

--------------------------------------------------
Best regards,
Macro Zhou (v-*****@online.mi crosoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

--
=============== ========
Steven Tang
SYWWUYU)
**:)

Oct 24 '08 #3
Hi Steven,

I would greatly appreciate if you could provide a small ,complete and
ready-to-run example to demonstrate the layout issue you described above,
since I cannot reproduce this issue.

You could send your minimalist project to me at v-mazho at microsoft dot
com.
--------------------------------------------------
Best regards,
Macro Zhou (v-*****@online.mi crosoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 24 '08 #4
Hi Macro, I sent the mail to you, the title is
"Following XBAP Gadget in General Discussions".

All the best
--
=============== ========
Steven Tang
SYWWUYU)
**:)
"Marco Zhou [MSFT]" wrote:
Hi Steven,

I would greatly appreciate if you could provide a small ,complete and
ready-to-run example to demonstrate the layout issue you described above,
since I cannot reproduce this issue.

You could send your minimalist project to me at v-mazho at microsoft dot
com.
--------------------------------------------------
Best regards,
Macro Zhou (v-*****@online.mi crosoft.com, remove 'online.')
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsof t.com.

This posting is provided "AS IS" with no warranties, and confers no rights.

Oct 24 '08 #5

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

Similar topics

1
4121
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
2684
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 server but runs in the browser, hosted by PresentationHost.exe. So, since it gets the app from the server each time that it runs (yes?) it makes maintenance easy. But because it isn't a bunch of html and javascript but can access almost the full...
2
4267
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 doesnt show anything from the XBAP page. Am I missing something simple here? Abhi
0
3027
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 partial trust that is in internet. if i can please help me with some specific guide line. second of all how can i communicate with the parent site... from xbap. that is if my xbap is hosted in http://mysite/app/default.aspx page in a iframe
3
3613
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 and there are no exceptions. I have tried increasing limits on both client and server. Here is a typical entry: <binding name="myBasicHttpBinding" maxBufferSize="2097152" maxBufferPoolSize="8388608" maxReceivedMessageSize="2097152"...
2
3158
by: Steven Tang | last post by:
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...
0
1469
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 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...
2
11310
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)
5
5900
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 put? -- ======================= Steven Tang SYWWUYU)
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10091
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8972
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5381
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3645
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2879
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.