XBAP gadget

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steven Tang

    #1

    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: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.

    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


  • James Hotmail

    #2
    Re: XBAP gadget

    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" <stang@mediator .comwrote in message
    news:7C45A588-928A-4F35-8F20-272E775C492E@mi crosoft.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: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.
    >
    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
    >
    >

    Comment

    • =?Utf-8?B?U3RldmVuIFRhbmc=?=

      #3
      Re: XBAP gadget

      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" <stang@mediator .comwrote in message
      news:7C45A588-928A-4F35-8F20-272E775C492E@mi crosoft.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: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.

      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

      Comment

      Working...