Skip to content

Instantly share code, notes, and snippets.

@hatsunea
Last active March 30, 2025 02:01
Show Gist options
  • Select an option

  • Save hatsunea/cfba3cd7eb2624b4af920a2c6a6462da to your computer and use it in GitHub Desktop.

Select an option

Save hatsunea/cfba3cd7eb2624b4af920a2c6a6462da to your computer and use it in GitHub Desktop.
MauiAuthApp.Views.MainPage.xaml
<?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="MauiAuthApp.Views.MainPage"
xmlns:local="clr-namespace:MauiAuthApp"
BindingContext="{Binding ViewModel,Source={RelativeSource Mode=Self}}">
<ScrollView>
<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
Source="dotnet_bot.png"
HeightRequest="185"
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
<Label
Text="Hello, World!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
<Label
Text="{Binding Message}"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
<Button
Text="{Binding CounterText}"
SemanticProperties.Hint="Counts the number of times you click"
Command="{Binding ClickMeCommand}"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment