xaml - How to write a style for HyperlinkButton Shadow effect in Silverlight -
i have styled hyperlinkbutton per custom need follow:
<hyperlinkbutton tag="transactions/homeworkpage" background="#e9e9eb" foreground="black"> <hyperlinkbutton.effect> <dropshadoweffect direction="270" opacity="0.35" shadowdepth="3"/> </hyperlinkbutton.effect> <stackpanel orientation="horizontal"> <image source="/schoolmgmt;component/assets/images/r_homework.png" margin="10,0,1,0"/> <telerik:label content="home work" characterspacing="25" telerik:stylemanager.theme="{binding selectedtheme,mode=twoway}" fontsize="12" fontfamily="arial rounded mt" margin="3"/> </stackpanel> </hyperlinkbutton>
now satisfy result started write style resource can use wherever want.
this able write:
<style x:name="quicklinkstyle" targettype="hyperlinkbutton"> <setter property="background" value="#e9e9eb"/> <setter property="foreground" value="black"/> </style>
i not able convert following style
<hyperlinkbutton.effect> <dropshadoweffect direction="270" opacity="0.35" shadowdepth="3"/> </hyperlinkbutton.effect>
i not designer , not using expression blend writing style. tried googled it. able find out datatemplate , visualstates etc. confusing.
so not working?
<style x:name="quicklinkstyle" targettype="hyperlinkbutton"> ... <setter property="effect"> <setter.value> <dropshadoweffect .../> </setter.value> </setter> </style>
Comments
Post a Comment