-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainPage.xaml
More file actions
41 lines (33 loc) · 1.64 KB
/
MainPage.xaml
File metadata and controls
41 lines (33 loc) · 1.64 KB
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
35
36
37
38
39
40
41
<?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="MauiAppBoldTest.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a hovercraft number nine" />
<Label x:Name="Label0" Text="Hello, World!" HorizontalOptions ="Fill"/>
<Label x:Name="Label1" Text="Hello, World Bold!" HorizontalOptions ="Fill" FontAttributes="Bold" />
<!-- Workaroud -->
<Label x:Name="Label2Span">
<Label.FormattedText>
<FormattedString>
<Span Text="Hello, World Bold! (Workaround)" FontAttributes="Bold"/>
</FormattedString>
</Label.FormattedText>
</Label>
<Label
Text="Welcome to .NET Multi-platform App UI"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
<Button x:Name="Button1" Text="Button1" Clicked="Button1_Clicked" HorizontalOptions="Fill" />
<Button x:Name="Button2" Text="Button2" Clicked="Button2_Clicked" HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>