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"
x:Class="MobileAPP.MainPage">
<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" />
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="450"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackLayout>
<Label
Text="Hello, World!"
Style="{StaticResource Headline}"
SemanticProperties.HeadingLevel="Level1" />
Text="Привет!"
Style="{StaticResource Headline}" TextColor="Black" FontSize="32"/>
<Label
Text="Welcome to &#10;.NET Multi-platform App UI"
Style="{StaticResource SubHeadline}"
SemanticProperties.HeadingLevel="Level2"
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
Text="Заолните Свои Данные Или Продолжие Через Социальные Медиа"
Style="{StaticResource SubHeadline}" TextColor="#707B81" FontSize="16"/>
</StackLayout>
<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
x:Name="CounterBtn"
Text="Click me"
SemanticProperties.Hint="Counts the number of times you click"
Clicked="OnCounterClicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</ScrollView>
</ContentPage>
</ContentPage>

View File

@ -8,18 +8,6 @@
{
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);
}
}
}