Image button Custom Control, silverlight
I am trying to build the Image button by setting
<Button.Content>
<Image Source="..."/>
</Button.Content>
Everything is Fine but i am not able to set the Visual States when button is clicked i wanted to something like Flash on t开发者_如何学JAVAop of button (Blue Purple Theme).
One more thing I need to create around 10 such button with different Images I think Custom Control works fine.
Any help is appretiated.
Thanks Lavanya
You'll want to re-template your Button(s) and wrap that up into a Style.
http://weblogs.asp.net/scottgu/pages/silverlight-tutorial-part-7-using-control-templates-to-customize-a-control-s-look-and-feel.aspx
Then use the VisualStateManager (easiest from within Blend 3) to change the visual properties on various states.
http://silverlight.net/learn/tutorials/stylestemplatesvsm-cs/
精彩评论