locked
MyUIElement.GetValue(NameProperty) RRS feed

  • Question

  • Hi experts,

    Is there a fastest way to get the name of a UIElement because when I look at the Performance and Diagnostic report of Visual Studio 2013 Pro, I see this simple line in red taking a lot of percentage

    Thursday, January 2, 2014 4:21 PM

Answers

  • As Anne says, there isn't a faster way, but that should be pretty fast. If its taking a high percentage it sounds likely that you are calling it more frequently than you need. Apps don't generally need to call this often.

    --Rob

    • Marked as answer by GearWorld Friday, January 3, 2014 5:36 PM
    Friday, January 3, 2014 4:03 PM
    Moderator

All replies

  • Hi,

    This is by design in windows store app. There is no way can do this other than GetValue method.

    Best Wishes!


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to &quot;Mark as Answer&quot; the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, January 3, 2014 7:28 AM
  • As Anne says, there isn't a faster way, but that should be pretty fast. If its taking a high percentage it sounds likely that you are calling it more frequently than you need. Apps don't generally need to call this often.

    --Rob

    • Marked as answer by GearWorld Friday, January 3, 2014 5:36 PM
    Friday, January 3, 2014 4:03 PM
    Moderator
  • Thank you guys it indeed passes very often.

    Friday, January 3, 2014 5:36 PM