Mike Blandford
Mike Blandford

Reputation: 4012

Silverlight White text with Black Border?

I saw that you can do a dropshadow: http://pagebrooks.com/archive/2009/03/30/easy-drop-shadows-on-text-in-silverlight-3.aspx

Can you also do a text border, like white colored text with a black border around each glyph?

My problem is actually this:

In our web application, a user can pick ANY color for a background, and we're going to put their username in that background. How can I write the username text so that it is visible?

Upvotes: 1

Views: 2365

Answers (2)

felixthehat
felixthehat

Reputation: 847

Not really, but you can adjust your shadowdepth to 0 so so it's no distance from the letters. Bit of a hack but you can get some nice blending effects

alt text http://www.blackspike.com/jing/textOutline.png

Upvotes: 1

Clay Fowler
Clay Fowler

Reputation: 2078

You have to be willing to use paths instead of fonts, but there are tools that can automate this for you, such as this: http://www.codeplex.com/sltext

Upvotes: 2

Related Questions