Skip to main content
Home Forums Silverlight Programming Programming with .NET - General About transparency.
3 replies. Latest Post by ssawchenko on May 25, 2009.
(0)
piscevs
Member
47 points
53 Posts
05-19-2009 9:04 AM |
Hi!
I recently posted qustion about how to make silverlight application transparent:
http://silverlight.net/forums/t/96376.aspx
I got answer, i made silverlight app transparent. But got another one problem :(
So, i'm trying to make smth like layer with silverlight application, which will be on top of the html or asp page, and i should be able to catch silverlight events like mouseclick, mousemove, etc... Tryed to make that with adding params to silverlight app tag:
<param name="background" value="transparent" /> <param name="windowless" value="true" />
It is working only when under the silverlight application is nothing, but if i add a html image under silverlight application, i CANT catch silverlight events.
Tryed to remove <param name="windowless" value="true" />, then i'm able to catch events, but all silverlight application becomes black, not transparent. But i need to see through silverlight application and catch mouse events.
Is that possible?
05-19-2009 6:14 PM |
i hope that is possible
05-23-2009 7:05 AM |
seems like, there's no answer
ssawchenko
342 points
177 Posts
05-25-2009 4:10 PM |
Just wondering, have you tried setting the background of your main application usercontrol to be transparent? So, not passing it in as a parameter, but actually setting the background of the app directly in the xaml? I know we had this problem before, and this worked for us.
Ie...
<UserControl x:Class="MyNamespace.MyMainApp" xmlns="http://schemas.microsoft.com/client/2007" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:MyNamespace" Background="transparent">
...