Skip to main content

Microsoft Silverlight

Answered Question Effects within Style resources?RSS Feed

(0)

Grofit
Grofit

Member

Member

202 points

294 Posts

Effects within Style resources?

 Hey,

Im just wondering if it is possible to put effects in with your style tags. In this scenario im wanting to have a shadow around some text, but just wanted 1 style to apply...

codeblock
codeblock

Contributor

Contributor

4060 points

716 Posts

Silverlight MVP
Answered Question

Re: Effects within Style resources?

yes you can:

<Style ....>
    <Setter Property="Effect">
        <Setter.Value>
            <DropShadowEffect .... />
        </Setter.Value>
    </Setter>
</Style>

The .... has to be changed with the usual attributes in the elements.

HTH

If this answers your question, please "mark it as answer"

--
Andrea Boschin
MVP Silverlight & Silverlight Insider
, Me on Twitter

shamrat231
shamrat231

Contributor

Contributor

4473 points

569 Posts

Re: Effects within Style resources?

 Well, yes you can create your own style with shadow around text using blend.

Have a look

http://team.interknowlogy.com/blogs/bradcunningham/archive/2008/12/04/think-outside-the-textbox.aspx

Sharker Khaleed Mahmud
(MCP,MCTS,MCPD[web])
Software Developer

This credits that member, earns you a point and marks your thread as Resolved so we will all know you have been helped.

 

 

Dhaka, Bangladesh
LinkedIn :: SL Profile :: Blog
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities