Skip to main content

Microsoft Silverlight

Unanswered Question About transparency.RSS Feed

(0)

piscevs
piscevs

Member

Member

47 points

53 Posts

About transparency.

 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?

 

 

piscevs
piscevs

Member

Member

47 points

53 Posts

Re: About transparency.

i hope that is possible

piscevs
piscevs

Member

Member

47 points

53 Posts

Re: Re: About transparency.

 seems like, there's no answer

ssawchenko
ssawchenko

Member

Member

342 points

177 Posts

Re: Re: About transparency.

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"
>

...

 

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities