Posts

Showing posts from July, 2022

Templates Come in many Shapes and Sizes

Image
.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 ...

Welcome to the Wonderful Wacky World of .Net Maui

Image
What, where, how and why What springs to mind when you hear the word Maui? Palm trees and cocktails being enjoyed on amazing beeches in Hawaii? Well, that sounds like so much fun. Still hopefully .Net Maui is just as much fun. What is is is a cross-platform programming language that leverages existing skills like C# to easily build powerful apps. Currently it is not live but it is supported by Microsoft. What this means is that by the time it goes live things may change a little. With that said, you can feel comfortable using it in a production environment today!!!! What does MAUI stand for /Well, like all good acronyms .Net Maui has a real name.... .Net M ulti-platform A pp UI  .Of course, .Net Maui sounds so much cooler. I have to admit, every time I say it in my head I see palm trees swaying to calypso music in my head. To me, what  it stand for is an amazingly easy entry into the world of app development. After all I have been writing C# programs for 20+ years and have bee...

Am I too old to learn a new trick?

Image
 I've always been one to want to learn new things, running, diy, how to cook fries. The list goes on and on, so what about new computer language? I learnt my first language 43 years ago at the ago of 10 from a book. I still remember punching cards to send away to IBM just to wait two weeks to get the result... Syntax Error on Card 25!!! It was my first major hobby and little did I know then it was going the thing that took me places and let me live a good life. 43 years later I have learnt way too many languages, several databases and played every role from operator to CTO and everything in between, but through it all, my open true passion is a a developer, a designer. I like to build things and I like to push myself to learn new things.  I jumped on the .Net train when it was still in beta, before it became cool and cross platform.  Back then C# and .Net was a slow proprietary language. I remember being at a conference in Phoenix where Microsoft were presenting and they ...