locked
saerchbox in MVVM way RRS feed

  • Question

  • SearchBox provide 2 important events one is SuggestionsRequested and another is

    QuerySubmitted.

    the first event is for the app run its suggestion logic and second one is for the app to provide search logic.

    however, in MVVM, instead of handling event, we should bind some command and data source from the VM to the page.

    I would be interested to know if anyone has done that before or anyone has some idea on how to do the SearchBox with MVVM way?

    thanks


    Peter Lu .Net Enterprise Wide Application Architect MCTS, MCDBA, MCPD/EA State Local and Education Division HP Enterprise Services

    Thursday, February 20, 2014 5:01 PM

Answers

  • maybe you can make  an attached property. problem is; what you going to set on the itemsource? it need to be based on the event args

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by Anne Jing Monday, March 3, 2014 3:15 AM
    Thursday, February 20, 2014 5:58 PM
  • Yes possible. EventTriggerBehavior. see SDK.
    • Marked as answer by Anne Jing Monday, March 3, 2014 3:16 AM
    Sunday, February 23, 2014 3:10 AM

All replies

  • maybe you can make  an attached property. problem is; what you going to set on the itemsource? it need to be based on the event args

    Microsoft Certified Solutions Developer - Windows Store Apps Using C#

    • Marked as answer by Anne Jing Monday, March 3, 2014 3:15 AM
    Thursday, February 20, 2014 5:58 PM
  • Yes possible. EventTriggerBehavior. see SDK.
    • Marked as answer by Anne Jing Monday, March 3, 2014 3:16 AM
    Sunday, February 23, 2014 3:10 AM