Challenge: Adding Elements in a MAUI Application
Sveip for å vise menyen
You have the base application given on the Github Repository.
Clone the program to your local machine, and add a new Button element to the application, and set its properties to the following values:
x:Name:CloseBtnText:CloseHorizontalOptions:Fill
You only have to edit the XAML file.
Check: If the program runs successfully without throwing any exceptions then your task is correct.
Hint
A new button element can be created using the following syntax:
<Button property1="value1" property2="value2" />
Solution
<Button
x:Name="CloseBtn"
Text="Close"
HorizontalOptions="Fill" />
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 1. Kapittel 5
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Seksjon 1. Kapittel 5