Windows10个万能app TriggerAction<T>去哪儿了?

Windows 10 universal app where did TriggerAction<T> go?

我试图从一个旧的 windows phone 项目移植一些代码,但我有 2 个问题。

TriggerAction<T>class去哪了?我可以找到 Windows.UI.Xaml.TriggerAction 但没有 Invoke 方法重载 AssociatedObject 也丢失了..

其次,我如何使用 EventTrigger.RoutedEvent 我试图将它连接到 KeyUp 但无论我写什么,我都会得到 The event 'KeyUp' is not a RoutedEvent.

我想你可以用 Binding Command and Behavior SDK 代替它们。 Here 是在 MVVM-Light 中使用它们的分步教程