How to add Command Behavior in windows store 8.1 MVVM application

后端 未结 2 1247
遇见更好的自我
遇见更好的自我 2020-12-14 11:20

I want to invoke a command on TextChange event of new windows phone 8.1 AutoCompleteBox Control. I am using MVVM Light.

2条回答
  •  攒了一身酷
    2020-12-14 12:17

    The marked answer is certainly correct and it helped me to discover the Behavior SDK; however, the Behavior SDK seems to already be installed natively in VS 2015 CTP, rather than being an extension. Furthermore, for a Universal app to use the Behavior SDK you must:

    1. Right-mouse click your project's References folder and select Add Reference.... The Reference Manager dialog opens.
    2. Select the Windows Phone 8.1 tab or the Windows 8.1 tab on the left, depending upon which type of project you're updating.
    3. Select the Extensions sub-tab.
    4. On the right, check Behavior SDK (XAML).
    5. In a solution for a universal project, the Shared project can make use of the Behavior SDK just like any other project; however, it doesn't have any References folder, so you must simply add the reference to all of the target platform projects instead using the previous steps; e.g., your .Windows and .WindowsPhone projects.

    The XAML namespaces that you must define are still the same:

    
    

提交回复
热议问题