Style.Setter with Binding in Universal Windows Applications

穿精又带淫゛_ 提交于 2019-12-13 21:34:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!