Faster & Safer XAML with Compiled Bindings in Xamarin.Forms & .NET MAUI

  Рет қаралды 11,100

James Montemagno

James Montemagno

Күн бұрын

Пікірлер: 35
@BurtonJohnson
@BurtonJohnson 3 жыл бұрын
James, you are one of the best explainers out there, right up with Hanselman.
@RobUttley
@RobUttley 3 жыл бұрын
Great - the x:Null bit had passed me by the first time I saw compiled bindings and I found that having them turned on caused me problems. Now I understand the x:Null, I’ll go back and adopt this approach again. Nice one, thanks James!
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Same here! Took me a while to figure that one out
@dineshb8016
@dineshb8016 3 жыл бұрын
Exactly same for me
@christianzaragoza7575
@christianzaragoza7575 Жыл бұрын
Lo que estoy aprendido con tus tutoriales no tienes idea, son mas claros que la misma documentación oficial, se agradece todo el material que nos brindas. Muchísimas gracias.
@markmbouma
@markmbouma 3 жыл бұрын
Really nice. That's been my default xaml technique for quite some time now. It's good to have a dedicated video about it because a lot of folks out there still aren't using it.
@vukilesimelane2033
@vukilesimelane2033 3 жыл бұрын
Thank you sooo much James. Much appreciated!!!!
@anandshindey
@anandshindey 3 жыл бұрын
Just what I wanted. Thanks.
@Jad.abouzaki
@Jad.abouzaki 2 жыл бұрын
Thank you
@belmiris1371
@belmiris1371 2 жыл бұрын
x:DataType="{x:Null}" just made my listview start showing strings in my ListView. Thank you!
@EdRawrDev5813
@EdRawrDev5813 6 ай бұрын
is there any way to use preprocessor directives on XAML ??
@bondarenkodf
@bondarenkodf 3 жыл бұрын
Hei! x:datatype perfectly works with interfaces, so the possible solution for the case with grouping is to create a class which is inheriting the class Grouping and the interface IGrouping { string Key {get;}}
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
I think I’m going to add this in to my api :)
@emreaka3965
@emreaka3965 3 жыл бұрын
Hey guys, I have some confusing about learning mobile development. Should I start with native or cross-platform? (I have knowledge of back-end and some front-end web dev.)
@DhruvKanojia
@DhruvKanojia 3 жыл бұрын
Hey James, I've been following you since 2015 (Since I started with Xamarin Forms)... cool libraries and content you've got. And I do have a question that "maybe" you can showcase in some episode if you get a chance. I wanted to show "tabular" data in my app. All I could find was syncfusion and some other third party "Datagrid". But, those don't work well when you have a dynamic data coming from your REST API. I was able to create presentable table via grid and some dynamic addition of columns (stacklayouts). But, it's very limited. So, what would you suggest in that case? Would love some insight on this, if possible. Again, thanks for this amazing series and your work on Xamarin :D
@GuildOfCalamity
@GuildOfCalamity 2 жыл бұрын
Is it possible to enable XamlCompilation in a WPF application?
@hkchan4470
@hkchan4470 3 жыл бұрын
Hi James, do you have guide on how to implement Firebase notification properly ? Appreciate that . Thanks.
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
See allanritchie.com/posts/shiny20
@hkchan4470
@hkchan4470 3 жыл бұрын
@@JamesMontemagno Thanks !
@mattkenefick
@mattkenefick 3 жыл бұрын
Is this something that will eventually become an automatic enhancement? It seems like something that Visual Studio could infer on some files based on the top level BindingContext if one is not supplied.
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
That is the plan. It does pick up some stuff automatically with the BindingContext
@thiagooliveira-ti
@thiagooliveira-ti 3 жыл бұрын
Ohhh!
@blinkskaterkc
@blinkskaterkc 3 жыл бұрын
I've been setting the BindingContext in the code behind, and I've got the XamlCompilation assembly setting. I am not using that x:DataType line yet. Is that alone going to give me this speed-up enhancement???
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
XamlCompilation will improve performance but compiled bindings will further improve performance. It is fine to see the binding context in the code behind as I said just also set the x:DataType
@blinkskaterkc
@blinkskaterkc 3 жыл бұрын
@@JamesMontemagno You're my favorite person. Thanks for clarifying! 👍
@echolumaque2130
@echolumaque2130 3 жыл бұрын
Can I use this even if I'm using Prism?
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Of course it a Xamarin.Forms feature and works with everything. Think of it as extra metadata. You can set the BindingContext however you want
@mustaphaben2921
@mustaphaben2921 3 жыл бұрын
Do a video about MVU
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Will add it to my topic list for sure as I mostly do MVVM and not much MVU, but I am excited to try it out.
@mustaphaben2921
@mustaphaben2921 3 жыл бұрын
@@JamesMontemagno Thanks
@chummer4493
@chummer4493 3 жыл бұрын
There's a better way then using x:Null for group header data type. You can make your group collection to implement some interface that has this Key property or some other properties you might need for your group header
@JamesMontemagno
@JamesMontemagno 3 жыл бұрын
Nice pro tip!
@adjanohadamamarcel207
@adjanohadamamarcel207 3 жыл бұрын
I'm interested by this approach. Can you explain it more or provide a link for further understanding ? Thanks
@chummer4493
@chummer4493 3 жыл бұрын
@@adjanohadamamarcel207 Here's quick example. I haven't run it, but it shows a general idea github.com/ChummerUA/XamarinFormsGroupHeaderDataTypeExample
@LuigiTrabacchin
@LuigiTrabacchin 3 жыл бұрын
just out of curiosity would something like: docs.microsoft.com/en-us/dotnet/desktop/xaml-services/generics work ? or maybe writing a markup extension is necessary ? also i read that changing angular brakets with parenteses should do the trick docs.microsoft.com/en-us/dotnet/desktop/xaml-services/xtypearguments-directive but maybe only inside that previous "parameter"
XAML Data Binding and MVVM Basics (.NET MAUI, WPF, UWP, Xamarin.Forms)
19:15
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 10 МЛН
Wait for it 😂
00:32
ILYA BORZOV
Рет қаралды 7 МЛН
Upgrading from Xamarin to .NET MAUI | OD119
17:11
Microsoft Developer
Рет қаралды 9 М.
Configuring & Optimizing Xamarin Projects - Smaller, Faster, Better Apps
32:49
Custom Fonts & Font Icons/Images in Xamarin.Forms
20:18
James Montemagno
Рет қаралды 22 М.
Xamarin.Forms ListView vs. CollectionView - Which to use and why!
20:14
James Montemagno
Рет қаралды 31 М.
Animating Controls in .NET MAUI & Xamarin.Forms
19:19
James Montemagno
Рет қаралды 26 М.
Build Better Apps with .NET Aspire - Complete Beginner's Guide & Tutorial
1:12:47
30 Programming Truths I know at 30 that I Wish I Knew at 20
17:41