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
|