Templates Come in many Shapes and Sizes
.Net Maui provides a set of templates to make your life easier. So, what is a template and why are they important? A template is a reusable piece of code. This is the very basic definition of a template. Really they are pieces of code that are reusable and therefore make your life easier because they contain code that is used again and again. They come in all shapes and sizes. Complex ones can be bound to data models, simple ones are self contained. Controls are really just another form of templates. In this post we will build a basic simple template. Introduction to the Header Template So, in my app I want a common header to each page. It should have a logo, a background and have the ability to accept and display a title. The Code..... Let's start with the xaml, the UI part of the template It defines a grid that has 3 rows and 4 columns. The logo takes up all three rows and sits in the first column. An interesting thing here is that he background fills the whole of the grid. The ...