Solved

Silverligh 2 beta 2 Image layering

Posted on 2008-06-19
2
457 Views
Last Modified: 2013-11-12
Hello,

I am new to Silverlight and trying to figure out how to layout multiple images and how does the transparent are work. The requirement I have is to layer multiple images. The top image has some transparent area and I would expect to see the other image from this transparent area. It is displaying white area instead. I used Canvas, inserted images, and set z-index. I used .PNG images.

I am not sure if it is possible with Silverlight. Can you please give me recommendation?
0
Comment
Question by:MatDev
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
adler77 earned 500 total points
ID: 21828360
Are these 24-bit PNGs (with alpha) or 8-bit? Silverlight doesn't support 8-bit very well (officially, it may not support them at all) and you don't get any transparency. Also, do the <Canvas> objects have a background color set to them?

If possible, it may help if you post your code/images here.
0
 

Author Comment

by:MatDev
ID: 21832409
It was 8-bit image. I changed it to 24-bit and it worked. Thanks for you help.
0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question