Is it possible to apply Gradient to a Background Image in Silverlight? -
i want apply gradient image how can achieve that?
thanx
you host image within border, applying gradient border background:
<border> <border.background> <lineargradientbrush endpoint="0,1" startpoint="0,0"> <gradientstop color="red" offset="0" /> <gradientstop color="blue" offset="1" /> </lineargradientbrush> </stackpanel.background> <image source=..your image source .." /> </border>
this assumes image has opaque regions show gradient beneath it.
Comments
Post a Comment