forked from VladislavAntonyuk/MauiSamples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
34 lines (29 loc) · 1.16 KB
/
MainPage.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="TutorialHelp.MainPage"
BackgroundColor="{DynamicResource SecondaryColor}">
<ContentPage.ToolbarItems>
<ToolbarItem Text="?" Clicked="ToolbarItem_Clicked"/>
</ContentPage.ToolbarItems>
<VerticalStackLayout>
<Label
Text="Welcome to .NET Multi-platform App UI"
SemanticProperties.HeadingLevel="Level1"
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
FontSize="18"
HorizontalOptions="Center" />
<Label
Text="Current count: 0"
FontSize="18"
x:Name="CounterLabel"
HorizontalOptions="Center" />
<Button
Text="Click me"
WidthRequest="90"
HeightRequest="40"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ContentPage>