How to judge if a silverlight button is a closebutton? RRS feed

  • Question

  • hello,every friend!

    My problem is that there is close button with a cross, I can get the button object, its type is button class, but how can I judge if it is a close button ,any fields or attributes can do it?



    Monday, October 3, 2011 10:53 PM


  • One suggestion would be to check the content property of the button object which you have found if you can't do it with the content property then you might save some identification in the tag property of the button so that what you get the button object you can check the tag property and perform opetion according to the button tag value.

    Tuesday, October 4, 2011 12:54 AM