WPF in IFrame hosted in vista sidebar gadget black screen problem  
Author Message
MarekT





PostPosted: UI Development for Windows Vista, WPF in IFrame hosted in vista sidebar gadget black screen problem Top

I am having problems when I am trying to host a XAML page in vista sidebar. The page loads fine in IE, but when I try to load it in vista sidebar, a black background is shown. When I move the mouse over a button placed on the XAML page, the black surface flickers and I can see the button through the flicker.

The XAML source (test.xaml):

<Page xmlns=" http://www.hide-link.com/ "
    xmlns:x=" http://www.hide-link.com/ "
    Title="Page1" Width="100">
    <Button Height="50" HorizontalAlignment="Left" Name="button1" VerticalAlignment="Top" Width="50">foo</Button>
</Page>

The HTML source I am using for the gadget (HelloWorld.html):

<html>
<head>
 <title>Test</title>
 
 <style>
  body {
   width:130;
   height:130;
   padding:5;
   margin:0;
   background:white;
  }
 </style>
</head>
<body>
        <iframe height="130"
                width="130" 
               src="test.xaml" />

</body>
</html>

The gadget.xml file:

< xml version="1.0" encoding="utf-8" >
<gadget>
    <name>Hello World!</name>
    <namespace>Example.You</namespace>
    <version>1.0</version>
    <author name="Your Name">
        <info url="www.example.com" />
    </author>
    <copyright>2006</copyright>
    <description>My first gadget</description>
    <hosts>
        <host name="sidebar">
            <base type="HTML" apiVersion="1.0.0" src="HelloWorld.html" />
            <permissions>full</permissions>
            <platform minPlatformVersion="0.3" />
        </host>
    </hosts>
</gadget>

Non-WPF gadgets work without problems. The html file loads fine in browser, the problem occurs only when I try to load it in the sidebar. The same with XBAP files instead of XAML.

 Vista Business edition, final version.



Software Development for Windows Vista13  
 
 
Jerry Jiang





PostPosted: UI Development for Windows Vista, WPF in IFrame hosted in vista sidebar gadget black screen problem Top

I have the same problem!

I really do not know why others can run WPF in gadget.


 
 
MarekT





PostPosted: UI Development for Windows Vista, WPF in IFrame hosted in vista sidebar gadget black screen problem Top

Hi Jerry,

I have not been trying to solve the issue since I posted to this forum, but I am "glad" that someone else has the same problem too. Maybe this could be a driver issue. What hardware are you on In my case it was an Asus M6A laptop, with integrated Intel 915 Graphics (with XP driver model drivers that came with Vista, since Intel doesn't intend to create WDDM drivers for this chipset) I think the problem may be in the drivers, despite I'm running WPF applications outside sidebar without problems...

Please let me know your configuration.


 
 
Jerry Jiang





PostPosted: UI Development for Windows Vista, WPF in IFrame hosted in vista sidebar gadget black screen problem Top

Maybe the Graphics card is the problem. My Graphics card is integrated GeForce 4 MX440. Run in Vista RTM.

I supposed microsoft would fix the problem when I encounter this problem in RC1. I think the WPF should run well in Gadget since it can run in IE.


 
 
Zac Boyles





PostPosted: UI Development for Windows Vista, WPF in IFrame hosted in vista sidebar gadget black screen problem Top

This doesn't help you now and you probably already heard but there is an update on the way to fully support XAML in gadgets. I'll try to find the link if you request it. It is probably on or around the Live Gadgets site.