问题
As stated in the question below, Setters cannot contain Bindings in Windows RT/Phone 8.1
=> Binding SelectedItems in ListView to a ViewModel in Windows Phone 8.1
Has this changed in the new Universal Windows Applications?
Still not Bindings in values?
回答1:
OK, you can't bind to the DataContext using the normal ways, but you can do it using other (smart) methods:
Please, look at this. It provides a "helper" that allows to bind to the DataContext with a Setter.
http://dlaa.me/blog/post/10089023
来源:https://stackoverflow.com/questions/33052081/style-setter-with-binding-in-universal-windows-applications