Using ValueConverters in Xamarin.Forms XAML, Here Is How To Do It

  Рет қаралды 4,503

Gerald Versluis

Gerald Versluis

Күн бұрын

Пікірлер: 28
@jfversluis
@jfversluis 4 жыл бұрын
O no! Demoes going wrong... What is your worst demo fail?
@jfversluis
@jfversluis 3 жыл бұрын
Truth! Thanks Jony!
@florentwinamou6650
@florentwinamou6650 3 жыл бұрын
thank you gerald for making xamarin so easy to understand...
@jfversluis
@jfversluis 3 жыл бұрын
So nice of you to say Florent! Really appreciate it!
@ralhamami
@ralhamami 2 жыл бұрын
Awesome video, man. I like your style of explaining. Very easy to follow. 👍
@jfversluis
@jfversluis 2 жыл бұрын
Glad you liked it! Let me know if there is something you need!
@jfras2359
@jfras2359 2 жыл бұрын
Did you find out how to bind the ConverterParameter?
@jfversluis
@jfversluis 2 жыл бұрын
Unfortunately it's just not possible. You will want to use MultiBinding: github.com/xamarin/Xamarin.Forms/issues/4565
@issacproton7885
@issacproton7885 4 жыл бұрын
Very Useful....now make a video about Creating Plugins from Scratch and Custom View Controls using SkiaSharp.
@jfversluis
@jfversluis 4 жыл бұрын
They're on the list, thank you for your suggestions!
@echolumaque2130
@echolumaque2130 2 жыл бұрын
Hello Gerald, is there any workaround regarding binding the converter parameter? I'm stuck there too :(
@jfversluis
@jfversluis 2 жыл бұрын
Why should there be a workaround for it? What is not working?
@kaspershudas2966
@kaspershudas2966 2 жыл бұрын
@@jfversluis Hey, he probably meant this part: 15:00 ConverterParameter with Binding (Doesn't Work! Epic Fail 🤦‍♂)
@hrishikeshgarud7177
@hrishikeshgarud7177 3 жыл бұрын
Is it bad if i use only code behind in my application instead of MVVM? I find code behind very easy.
@jfversluis
@jfversluis 3 жыл бұрын
Absolutely not. Whatever works for you, keep doing that! There is no MVVM police that will come get you. Choosing MVVM will give you some advantages but if you decide you can live without that, that is fine too!
@parsagachkar3140
@parsagachkar3140 3 жыл бұрын
Did anyone found a way to use bindings for Value Converter Parameters? It's really weird even the official documentation does not specify a solution to achieve this :( I'm probably using the worst solution around by implementing it in a value converter (passing the entire View Model as the input and handling it inside the Value Converter).
@jfversluis
@jfversluis 3 жыл бұрын
Isn't it described in detail in the Docs here? docs.microsoft.com/xamarin/xamarin-forms/app-fundamentals/data-binding/converters#binding-converter-parameters
@parsagachkar3140
@parsagachkar3140 3 жыл бұрын
@@jfversluis thanks, unfortunately it just demonstrates binding to a static value of 255 I was talking about binding to a property or etc. The same part of video that failed. Looks like there is no way.
@jfversluis
@jfversluis 3 жыл бұрын
Another way would be to create your own converter and add an additional (bindable) property?
@parsagachkar3140
@parsagachkar3140 3 жыл бұрын
@@jfversluis actually it's a good idea. Thanks alot.
@rajeshjha3681
@rajeshjha3681 4 жыл бұрын
ValueConverters are one of the things i hate about XAML. I always avoid using it.
@jfversluis
@jfversluis 4 жыл бұрын
O no Rajesh! Sorry to bring up traumas! Why do you hate them so much? And what do you do to avoid them?
@rajeshjha3681
@rajeshjha3681 4 жыл бұрын
@@jfversluis I create a new property that simply performs the logic in the getter and then i bind it in XAML. It's a cheating but i prefer creating a new property than creating ValuConverters.
@jfversluis
@jfversluis 4 жыл бұрын
@@rajeshjha3681 That is one way to get around it for sure :) I don't know I feel my ViewModel is then getting cluttered with things it shouldn't be doing. But that's mostly personal preference. I hope my next video will be better for you! :D
Three Data-Binding Tricks for Xamarin.Forms You Didn't Know!
17:52
Gerald Versluis
Рет қаралды 13 М.
Create Custom Controls using BindableProperty for Xamarin.Forms
17:48
Gerald Versluis
Рет қаралды 16 М.
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Retrieving and Deserializing JSON in Your Xamarin.Forms App
20:53
Gerald Versluis
Рет қаралды 16 М.
Getting Coordinates and Addresses with Xamarin.Forms.Maps
15:56
Gerald Versluis
Рет қаралды 9 М.
Xamarin.Forms ListView vs. CollectionView - Which to use and why!
20:14
James Montemagno
Рет қаралды 31 М.
Falling Into MERCURY - (POV Simulation)
4:39
The Bendu Order
Рет қаралды 17 М.
Decoupled Code with MessagingCenter in Xamarin.Forms
18:46
Gerald Versluis
Рет қаралды 12 М.
Styling Xamarin.Forms Apps with Reusable Resources & Styles
19:27
James Montemagno
Рет қаралды 15 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 914 М.
Real-World Input Validation Scenarios with Xamarin.CommunityToolkit
20:07
Uploading Files From a Xamarin.Forms App to ASP.NET Web API
24:53
Gerald Versluis
Рет қаралды 17 М.