Zak
Zak

Reputation: 721

Windows phone 7: button click, background and text-color, why?

i have my button:

completely trasparent, text in white. But when i click it, the background goes white and the text black, and it seems to move up :-| i want only execute the action, i don't want those strange effects. any ideas? thanks!

Upvotes: 1

Views: 4885

Answers (1)

Mo Valipour
Mo Valipour

Reputation: 13496

That's the default behaviour of Button control, if you want to avoid it you have some options:

  1. Use another control like textBlock and use OnMouseLeftButtonDown/Up

  2. Customize the template of your button: See the link bellow, this is default style of a button, you can copy/paste the Template part and modify it as you want. (You need to play with different visual states)

http://msdn.microsoft.com/en-us/library/cc278069(v=vs.95).aspx

Upvotes: 1

Related Questions