added autorization window

This commit is contained in:
Ivan 2025-03-10 09:13:40 +03:00
parent a0d7c5895b
commit 46dbea355f
2 changed files with 30 additions and 40 deletions

View File

@ -3,34 +3,36 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MobileAPP.MainPage"> x:Class="MobileAPP.MainPage">
<ScrollView> <Grid>
<VerticalStackLayout <Grid.RowDefinitions>
Padding="30,0" <RowDefinition Height="100"/>
Spacing="25"> <RowDefinition Height="450"/>
<Image <RowDefinition Height="*"/>
Source="dotnet_bot.png" </Grid.RowDefinitions>
HeightRequest="185" <StackLayout>
Aspect="AspectFit"
SemanticProperties.Description="dot net bot in a race car number eight" />
<Label <Label
Text="Hello, World!" Text="Привет!"
Style="{StaticResource Headline}" Style="{StaticResource Headline}" TextColor="Black" FontSize="32"/>
SemanticProperties.HeadingLevel="Level1" />
<Label <Label
Text="Welcome to &#10;.NET Multi-platform App UI" Text="Заолните Свои Данные Или Продолжие Через Социальные Медиа"
Style="{StaticResource SubHeadline}" Style="{StaticResource SubHeadline}" TextColor="#707B81" FontSize="16"/>
SemanticProperties.HeadingLevel="Level2" </StackLayout>
SemanticProperties.Description="Welcome to dot net Multi platform App U I" /> <StackLayout Grid.Row="1">
<Label Text="Email" Margin="20" FontSize="16"/>
<Frame CornerRadius="30" BackgroundColor="#F7F7F9" Padding="5" BorderColor="Transparent">
<Entry Placeholder="xyz@gmail.com" TextColor="#D8D8D8" Background="Transparent" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" />
</Frame>
<Label Text="Пароль" Margin="20" FontSize="16"/>
<Frame CornerRadius="30" BackgroundColor="#F7F7F9" Padding="5" BorderColor="Transparent">
<Entry Placeholder="*******" TextColor="#D8D8D8" Background ="Transparent" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" />
</Frame>
<Button Text="Восстановить" Background="Transparent" TextColor="#D8D8D8" HorizontalOptions="End"/>
<Button Text="Войти" BackgroundColor="#48B2E7" Margin="10"/>
</StackLayout>
<HorizontalStackLayout Grid.Row="2" VerticalOptions="Center" HorizontalOptions="Center">
<Label FontSize="12" Text="Вы Впервые?" TextColor="#707B81" Margin="5"/>
<Button FontSize="12" BackgroundColor="Transparent" Text=" Создать Пользователя" TextColor="Black" Margin="-10"/>
</HorizontalStackLayout>
</Grid>
<Button </ContentPage>
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>

View File

@ -8,18 +8,6 @@
{ {
InitializeComponent(); InitializeComponent();
} }
private void OnCounterClicked(object sender, EventArgs e)
{
count++;
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
}
} }
} }