locked
change the icon of a button if it is one icon already RRS feed

  • Question

  • I want an icon on my button to change the icon when its playing or paused.

    I want to do something like this?:

    btnPlay.Icon = "play"

    or something? Thanks

    Jordan

    Thursday, February 27, 2014 5:48 PM

All replies

  • Buttons don't have an icon property, but a content property. You can change it to whatever you want.


    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.

    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined objects and unknown namespaces.

    Thursday, February 27, 2014 7:58 PM
    Moderator
  • sorry I meant to say that it is an app bar button but it has an Icon as its property? so doesn't it have an icon? and how will I change this in the code?

    Thursday, February 27, 2014 8:06 PM