When I’m using the default data binding in WinJS, how do I bind to the “current item” instead of specifying a property to bind to. I’m think of the “.” in XAML that binds to the current item.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use “this” on the right side of the binding expression:
data-win-bind="innerText: this myInitializer"However, if you do so, you should write a custom initializer that knows how to pull apart “this” into something that correctly turns into a string.