Skip to main content
Home Forums Silverlight Design Designing with Silverlight overlaying a silverlight control over another - does transparency work?
4 replies. Latest Post by liquidboy on September 25, 2007.
(0)
liquidboy
Member
270 points
62 Posts
09-07-2007 5:55 AM |
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
452 points
82 Posts
09-07-2007 10:06 AM |
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,
swirling...
Participant
1348 points
385 Posts
09-07-2007 1:19 PM |
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.
09-07-2007 5:49 PM |
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
09-25-2007 5:17 AM |
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!