0

For example, when I hover a button with a pointer, it changes color. Or when it is pressed, it gets some other color. How can I edit what color it gets in those situations? I found this site http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj709909.aspx , but I don't understand how to edit Visual States of a button.

A6SE
  • 260
  • 1
  • 3
  • 13
  • See if this answer works for you: http://stackoverflow.com/questions/14087801/create-simple-custom-xaml-c-sharp-button/14087907#14087907 – chue x Jan 26 '13 at 15:31
  • Yeah, that's what I was looking for, but I'll have to search a bit more as my button has an image as a background, and I want to use another image when it is hovered or pressed. – A6SE Jan 27 '13 at 13:05
  • While investigating this, I accidently added some local resources. How can I delete them? – A6SE Jan 30 '13 at 00:28
  • @chuex Can you please help me with this, I can't find a way to add a background image to a visual state of a button. I tried by creating local resources, but I don't know how to implement them into an XAML code of a button. – A6SE Jan 30 '13 at 09:07
  • I haven't done an image button myself, but found this with just a tiny, tiny bit of research: http://stackoverflow.com/questions/10524508/change-button-image-on-hover-or-click – chue x Jan 30 '13 at 14:26
  • I know that, but it's not working. – A6SE Jan 30 '13 at 16:16
  • Your best bet is to ask a new question. Show what you've done (xaml, code). Link over to the existing samples (Stack Overflow or otherwise) that you have used. Write down what specifically does not work. "It doesn't work" will probably not get you any answers because it is not specific enough. – chue x Jan 30 '13 at 16:51
  • OK, soory :) It worked, it was just misspelling. Thanks a lot! – A6SE Jan 30 '13 at 19:04
  • @chuex Hi, it's been a long time, could you please post an answer so I can reward you. – A6SE Apr 04 '14 at 09:30

0 Answers0