From the course: .NET 9 Maui: Enhanced Features for Cross-Platform Development

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Compiled bindings in code

Compiled bindings in code

- [Instructor] Compiled bindings made their debut in C Sharp and Maui with Dotnet 8. So they're not entirely new to Dotnet nine. However, there are some changes to the format for what we can do with code bindings and also in XML, they were not allowed for bindings of the source property, nor were they allowed for multi bindings. Those restrictions have been removed and we will look at simple XML compiled bindings in the next video. For this video, we will look at the new code format. Compiled bindings do give us several benefits. They're faster. They verify that no property was spelled wrong and we can take advantage of IntelliSense. These do have the same restrictions as normal bindings, such as bindings to properties, or doing concatenation, but pretty much have the same capabilities as normal bindings. So how do these work in Dotnet nine with code bindings? If you get the start code for this video, you will see several of the pages that were XML based now create their UIs only in…

Contents