maui-linux/vsix/OpenMaui.VisualStudio/ProjectTemplates/OpenMauiLinuxApp/MainPage.xaml

42 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Note: OpenMaui currently uses code-based UI (MainPage.cs).
This XAML file is provided for future XAML support compatibility.
The code-behind in MainPage.cs takes precedence.
-->
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="$safeprojectname$.MainPage">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Label
Text="Hello, OpenMaui!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label
Text="Welcome to .NET MAUI on Linux"
Style="{StaticResource SubHeadline}"
SemanticProperties.Description="Welcome message" />
<Button
x:Name="CounterBtn"
Text="Click me"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot waving" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>