Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Understanding XAML and Adding Elements | Introduction to Desktop Development with .NET
Advanced C# with .NET

bookUnderstanding XAML and Adding Elements

Important Points:

  • XAML is a markup language derived from XML, and it stands for eXtensible Application Markup Language. MAUI uses XAML to define the UI Structure and basic configuration of app components; XAML consists of tags. A tag is a keyword enclosed in <> symbols: <TagName>;

  • There are two ways of writing XAML tags. If we want to include some other tags or content inside a certain element, we can use the double tag notation <TagName> content here </TagName>. On the other hand, if we don't have to include anything between the tags, we can use the shorter syntax: <TagName />;

  • A list of available Types and Classes can be found on the Official Documentation. For this course, it is not necessary to go through the documentation since most of the relevant tags and their properties will be covered as we progress through the chapters.

question mark

Which of the following are the correct ways of defining the Button element?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 4

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Awesome!

Completion rate improved to 3.7

bookUnderstanding XAML and Adding Elements

Sveip for å vise menyen

Important Points:

  • XAML is a markup language derived from XML, and it stands for eXtensible Application Markup Language. MAUI uses XAML to define the UI Structure and basic configuration of app components; XAML consists of tags. A tag is a keyword enclosed in <> symbols: <TagName>;

  • There are two ways of writing XAML tags. If we want to include some other tags or content inside a certain element, we can use the double tag notation <TagName> content here </TagName>. On the other hand, if we don't have to include anything between the tags, we can use the shorter syntax: <TagName />;

  • A list of available Types and Classes can be found on the Official Documentation. For this course, it is not necessary to go through the documentation since most of the relevant tags and their properties will be covered as we progress through the chapters.

question mark

Which of the following are the correct ways of defining the Button element?

Select the correct answer

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 1. Kapittel 4
some-alt