【发布时间】:2013-09-22 12:52:16
【问题描述】:
我正在使用最新版本的 MVVMLight 开发 WP 应用程序。我知道如何使用 Command 而不是在按钮单击事件中编写代码。
<Button Content='Push me' Command='{Binding DisplayMessageCommand}' />
但是,我如何使用 Pivot control 的 SelectionChanged 命令?
我不想在 xaml 页面的 .cs 文件后面的代码中编写 SelectionChanged 事件中的代码。
【问题讨论】:
标签: windows-phone-8 mvvm-light