forked from sentry-demos/dotnet-maui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
76 lines (64 loc) · 3.01 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<?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="DotNetMaui.MainPage">
<ScrollView>
<VerticalStackLayout
Spacing="25"
Padding="30,0"
VerticalOptions="Center">
<Image
Source="dotnet_bot.png"
SemanticProperties.Description="Cute dot net bot waving hi to you!"
HeightRequest="200"
HorizontalOptions="Center" />
<Label
Text="Hello, World!"
SemanticProperties.HeadingLevel="Level1"
FontSize="32"
HorizontalOptions="Center" />
<Label
Text="Welcome to .NET Multi-platform App UI"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I"
FontSize="18"
HorizontalOptions="Center" />
<Button
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click."
Clicked="OnCounterClicked"
HorizontalOptions="Center" />
<Button
x:Name="ThrowAndCaptureBtn"
Text="Throw and Capture Exception"
SemanticProperties.Hint="Throws an exception and captures it."
Clicked="OnCapturedExceptionClicked"
HorizontalOptions="Center" />
<Button
x:Name="ThrowUnhandledBtn"
Text="Throw Unhandled .NET Exception (Crash)"
SemanticProperties.Hint="Throws an unhandled .NET exception, crashing the app."
Clicked="OnUnhandledExceptionClicked"
HorizontalOptions="Center" />
<Button
x:Name="ThrowBackgroundUnhandledBtn"
Text="Throw Unhandled .NET Exception on Background Thread (Crash)"
SemanticProperties.Hint="Throws an unhandled .NET exception on a background thread, crashing the app."
Clicked="OnBackgroundThreadUnhandledExceptionClicked"
HorizontalOptions="Center" />
<Button
x:Name="JavaCrashBtn"
Text="Throw Java Exception (Crash)"
SemanticProperties.Hint="Throws an unhandled Java exception, crashing the app."
Clicked="OnJavaCrashClicked"
HorizontalOptions="Center" />
<Button
x:Name="NativeCrashBtn"
Text="Cause Native Crash"
SemanticProperties.Hint="Performs an invalid native operation, crashing the app."
Clicked="OnNativeCrashClicked"
HorizontalOptions="Center" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>