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!
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.
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.
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;}}
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
@@adjanohadamamarcel207 Here's quick example. I haven't run it, but it shows a general idea github.com/ChummerUA/XamarinFormsGroupHeaderDataTypeExample
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.
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.)
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???
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
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
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"
James, you are one of the best explainers out there, right up with Hanselman.
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!
Same here! Took me a while to figure that one out
Exactly same for me
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.
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.
x:DataType="{x:Null}" just made my listview start showing strings in my ListView. Thank you!
Thank you
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;}}
I think I’m going to add this in to my api :)
Thank you sooo much James. Much appreciated!!!!
is there any way to use preprocessor directives on XAML ??
Just what I wanted. Thanks.
Is it possible to enable XamlCompilation in a WPF application?
Hi James, do you have guide on how to implement Firebase notification properly ? Appreciate that . Thanks.
See allanritchie.com/posts/shiny20
@@JamesMontemagno Thanks !
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
Nice pro tip!
I'm interested by this approach. Can you explain it more or provide a link for further understanding ? Thanks
@@adjanohadamamarcel207
Here's quick example. I haven't run it, but it shows a general idea
github.com/ChummerUA/XamarinFormsGroupHeaderDataTypeExample
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.
That is the plan. It does pick up some stuff automatically with the BindingContext
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.)
Ohhh!
Can I use this even if I'm using Prism?
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
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???
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
@@JamesMontemagno You're my favorite person. Thanks for clarifying! 👍
Do a video about MVU
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.
@@JamesMontemagno Thanks
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
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"