Clipping Path
Last post 05-06-2008 3:00 AM by thierry.bouquain. 1 replies.
Sort Posts:
05-05-2008 7:56 PM
Clipping Path

I am pretty new to Silverlight. I am wanting to have some text that is fully transparent that will show whatever is behind it. I also want a black background. When I make the text transparent, it only blends in with the black. I searched google and found that you can use the clipping path, but it didn't show any examples and I couldn't find much in the MSDN2 Library. What can I do? Here is what I have:

<canvas xmlns="http://schemas.microsoft.com/client/2007">
    <canvas width="300" height="300" background="Black">
        <TextBlock canvas.left="10" canvas.top="10" text="My new thumbdrive is amazingly cool!" foreground="#ff00aaff" opacity=".5">
    </TextBlock></canvas>
</canvas>

 Thanks!
 

Gamewolf

Joined on 05-05-2008
Posts 19
05-06-2008 3:00 AM
Marked as Answer
Re: Clipping Path

Clipping Path works with Path. You can't use textblock to create a Clipping path. You can use a design tool to convert your text to a path geometry. Of course it means it will not work with dynamic text.

Thierry Bouquain
Ucaya
http://www.ucaya.com

thierry.bouquain

Joined on 05-06-2007
Nantes, France
Posts 224