Skip to main content

Microsoft Silverlight

overlaying a silverlight control over another - does transparency work?RSS Feed

(0)

liquidboy
liquidboy

Member

Member

270 points

62 Posts

Silverlight MVP

overlaying a silverlight control over another - does transparency work?

Hi,

Has anyone been able to overlay a silverlight control over another and have the transparency work correctly?

I'm trying to over lay a smaller silverlight control over a larger one. The larger one takes the size of the browser and rotates background images every 30 seconds. The smaller silverlight control is a simple control that houses a video player...

ps. no i don't want to combine both silverlight controls into 1, there's a reason why there separate..

Regards LiquidBoy

rhp_74
rhp_74

Member

Member

452 points

82 Posts

Re: overlaying a silverlight control over another - does transparency work?

Could you be more specific about the problem? I have been using the Opacity, and ZIndex property of elements for a while to build transparency and overlaying and they seem to work fine.

Hope this helps,


 

--
Roberto Hernández-Pou
http://www.rhpconsulting.net
-----------------------------
Don't forget to click "Mark as Answer" on the post that helped you.
This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.

swirlingmass
swirling...

Participant

Participant

1348 points

385 Posts

Re: overlaying a silverlight control over another - does transparency work?

I tried it just now and it seems to work fine.  All you should need is to set isWindowless to true for both of them.

liquidboy
liquidboy

Member

Member

270 points

62 Posts

Silverlight MVP

Re: overlaying a silverlight control over another - does transparency work?

Thanks guys... i needed to see if anyone else was having an issue..

 Ill try again..

ps. ive got 1 silverlight control (that takes the dimension of the full browser eg. 1200*1600) that acts as the background. And then i've got an other silverlight control (like a widget, on my case a video play) that im trying to place absolutely on top of the background.

The background plays a series of animations, rotating images over 30 second itterations. And the video player just plays vides at the user's request.

Anyway Ill try again, but im sure i set the transparency ok, ill have a go at the opacity and the zindex this time

 LiquidBoy

 

liquidboy
liquidboy

Member

Member

270 points

62 Posts

Silverlight MVP

Re: Re: overlaying a silverlight control over another - does transparency work?

For those interested i got my silverlight control over silverlight control to work ...

Basically i have a silverlight control that contains 1 big image element that is expanded to take up the entire background of the webpage (this will eventually be animated to be a slideshow of images). Then i overlayed a couple of silverlight controls that contain complex canvases and media elements (like widgets).

I was having trouble getting these widgets to correctly appear transparent over the main background silverlight control untill i set the background property in the "createobject" call to "background: '#00000000' ". The isWindowless:true was already set but it wasnt till i added the background did the transparency work!

That made the widgets transparent... Don't know why i had to do that !

hope this helps others out there!

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities