I think declaring Command like this is better then creating a variable and instance of ICommand/Command. public Command IncreaseCount { get { return new Command((object obj) => { count++; }); } } I love Xamarin.Forms 101, looking forward to more awesome videos.
Let's say you have 3 buttons that should all 3 do the same thing when you invoke the command. With your way wouldn't there be 3 different references versus 1?
Say my view-model had a list of objects, and as part of the child object properties, i wanted to include commands. Can anyone point me to such an implementation? Is this even the right way to do it or should I be following a different pattern for firing model specific events? Also, slightly off topic but can the child objects be view-models themselves? Or is that an anti-pattern?
The answer is yes. If you've got a listview (list of objects), you can bind a command to those objects so that something happens when you click on one of those children.
Here's the DataBinding vid James referenced at 2:50 that would be in the show notes in the description, but I don't see it there ua-cam.com/video/pr03CYqhFr4/v-deo.html&ab_channel=MicrosoftDeveloper
Hi guys. The setup and version show in this video is different of VS 2019. So the difficults is very more. I'm using Xamarin Studio 6.1.5, Xamarin.iOS 10.3.1.8, Xcode 8.2.1, Xamarin.Android 7.0.2.42 and Mac OS X 10.13.6. This setup is fully functionly. For Xamarin Forms newer my tips is watch videos more new for exemple channel9.msdn.com/Series/Xamarin-101 of Sep, 2019.
These 101s is such a good approach to learning.
I LOVE learning Xamarin Forms on Channel 9 with Xamarin Show 101. Montemagno you are the #1 !!!
I think declaring Command like this is better then creating a variable and instance of ICommand/Command.
public Command IncreaseCount
{
get
{
return new Command((object obj) =>
{
count++;
});
}
}
I love Xamarin.Forms 101, looking forward to more awesome videos.
Let's say you have 3 buttons that should all 3 do the same thing when you invoke the command. With your way wouldn't there be 3 different references versus 1?
Many thanks, you made it soooo super easy
How would you do the same exact thing when user starts typing inside entry control and the text changed?
Great! This looks pretty easy and useful!
Very informative!!!
Say my view-model had a list of objects, and as part of the child object properties, i wanted to include commands. Can anyone point me to such an implementation? Is this even the right way to do it or should I be following a different pattern for firing model specific events?
Also, slightly off topic but can the child objects be view-models themselves? Or is that an anti-pattern?
The answer is yes.
If you've got a listview (list of objects), you can bind a command to those objects so that something happens when you click on one of those children.
Here's the DataBinding vid James referenced at 2:50 that would be in the show notes in the description, but I don't see it there
ua-cam.com/video/pr03CYqhFr4/v-deo.html&ab_channel=MicrosoftDeveloper
Nice!! :D
James I dont have problem with xamarin but Its been in 2 hours already and I cant even fire up xamarin project with VS 2019. ITs bad mate.
Tru tho.
Hi guys. The setup and version show in this video is different of VS 2019. So the difficults is very more.
I'm using Xamarin Studio 6.1.5, Xamarin.iOS 10.3.1.8, Xcode 8.2.1, Xamarin.Android 7.0.2.42 and Mac OS X 10.13.6. This setup is fully functionly.
For Xamarin Forms newer my tips is watch videos more new for exemple channel9.msdn.com/Series/Xamarin-101 of Sep, 2019.
I wish if Xamarin supports html instead of shi*** xaml.