Style.Setter 在通用 Windows 应用程序中具有绑定
Style.Setter with Binding in Universal Windows Applications
如以下问题所述,Setter 不能包含 Windows RT/Phone 8.1
中的绑定
=> Binding SelectedItems in ListView to a ViewModel in Windows Phone 8.1
这在新的通用 Windows 应用程序中有变化吗?
值中仍然没有绑定?
好的,您无法使用常规方法绑定到 DataContext,但是您可以使用其他(智能)方法来完成:
请看这个。它提供了一个 "helper" 允许使用 Setter.
绑定到 DataContext
如以下问题所述,Setter 不能包含 Windows RT/Phone 8.1
中的绑定=> Binding SelectedItems in ListView to a ViewModel in Windows Phone 8.1
这在新的通用 Windows 应用程序中有变化吗?
值中仍然没有绑定?
好的,您无法使用常规方法绑定到 DataContext,但是您可以使用其他(智能)方法来完成:
请看这个。它提供了一个 "helper" 允许使用 Setter.
绑定到 DataContext