Visualstudio-docs: Clarify how to use BindingContext

Created on 12 Jul 2018  Â·  5Comments  Â·  Source: MicrosoftDocs/visualstudio-docs

Will help if a note is added informing how to configure binding, for example: "To bind property [Temperature] to respective value we should insert a label in the format <Label Text="{Binding Temperature}" ...>"


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

doc-bug visual-studio-dev1prod

Most helpful comment

Please refer to the XAML Basics documentation, which has a number of pages on binding. The syntax is largely the same as WPF and UWP, and it is our expectation that many readers will be familiar with this before they start working with Xamarin.

All 5 comments

Please refer to the XAML Basics documentation, which has a number of pages on binding. The syntax is largely the same as WPF and UWP, and it is our expectation that many readers will be familiar with this before they start working with Xamarin.

Well, that's a bit irresponsible to assume that isn't it? I'm sure I'll figure it out eventually, but I would imagine that it probably doesn't take no more than half of your first line for an explanation on basic BindingContext when starting an app.

Ah forgive me for not noticing the App.xaml.cs file. You can control the file launch page from there. The XAML Basics documentation gives a nice detailed explanation on binding. I haven't worked with binding much so thanks for the documentation above.

@conceptdev Thank you for the tutorial, it's very useful. Agreeing with rgreen88: Your expectation regarding reader familiarity with WPF and UWP bindings is incorrect, at least in my case as well. This is my 2nd Xamarin tutorial, so it's very helpful to have the explanation of how to setup the bindings.

Thanks for the feedback in this thread. From what I can understand, the commenters above are unblocked for now. We are taking the suggestions about when & how to introduce data-binding on board for future updates of these docs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Logerfo picture Logerfo  Â·  3Comments

rlundy picture rlundy  Â·  3Comments

wittelw picture wittelw  Â·  3Comments

Crono1981 picture Crono1981  Â·  3Comments

CeciAc picture CeciAc  Â·  3Comments