Around 1:32, I noticed a couple things: a) I believe "target t derive" needs to be replaced with "target derive" in the following sentence: "The target property must be a bindable property, which means that the target object must be bindable property, which means that the target t derive from BindableObject." Also, shouldn't "be bindable" be replaced with "be a bindable"? b) "Text is" needs to be replaced with "Text is" in the following sentence: "A property of Label such as Text is associated with the bindable property TextProperty."
But what if you want to bind the attribute of another object too for example the labels color? Right now you already have referenced the Slider in the BindingContext, how would you reference multiple objects and be able to get their values for different attributes of your label? I haven't tested this but I am guessing you'd maybe have to explicitly type out their fullname like Slider.Value and SomeObject.Value?
If you want to see the degrees symbol in lieu of the " degrees" text, you can replace the following code: Text="{Binding Value, StringFormat='The angle is {0:F2} degrees'}" with the following code: Text="{Binding Value, StringFormat='The angle is {0:F2}°'}"
Instead of literally reading out loud the text, it is better to breakdown and take apart the context and explain more clearly and in a bit more detail these objectives to achieve a better understanding.
🔔If you like the video, give this video a thumbs up and consider subscribing, and hit the bell button to keep you updated. Thanks! Keep Safe!
Done
Pls. continue your series. these are condensed and vital pieces for me to learn and understand more about Xamarin Forms. Thanks a lot!
I will. You're welcome!
Thanks for these videos. They are short and to the point.
You're welcome!
Good stuff! Thanks for your effort in these videos
Glad you like them!
Around 1:32, I noticed a couple things:
a) I believe "target t derive" needs to be replaced with "target derive" in the following sentence:
"The target property must be a bindable property, which means that the target object must be bindable property, which means that the target t derive from BindableObject."
Also, shouldn't "be bindable" be replaced with "be a bindable"?
b) "Text is" needs to be replaced with "Text is" in the following sentence:
"A property of Label such as Text is associated with the bindable property TextProperty."
Nice video!
Glad you enjoyed it
But what if you want to bind the attribute of another object too for example the labels color? Right now you already have referenced the Slider in the BindingContext, how would you reference multiple objects and be able to get their values for different attributes of your label? I haven't tested this but I am guessing you'd maybe have to explicitly type out their fullname like Slider.Value and SomeObject.Value?
If you want to see the degrees symbol in lieu of the " degrees" text, you can replace the following code:
Text="{Binding Value, StringFormat='The angle is {0:F2} degrees'}"
with the following code:
Text="{Binding Value, StringFormat='The angle is {0:F2}°'}"
Technically, "{" and "}" are known as curly braces, not brackets.
Instead of literally reading out loud the text, it is better to breakdown and take apart the context and explain more clearly and in a bit more detail these objectives to achieve a better understanding.
Thanks for the advice!