How to clear QueryText of SearchBox without calling QueryChanged? RRS feed

  • Question

  • I have a searchbox which subscribes to QueryChanged event. But when I manually set QueryText="" I don want the QueryChanged event to be called.

    How Can I achieve this?

    Wednesday, October 8, 2014 9:10 AM


  • Unsubscribe from the event, change, then resubscribe.

    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.

    Wednesday, October 8, 2014 12:22 PM