Начало верстки

This commit is contained in:
Vlad Torop 2025-03-10 10:02:43 +03:00
parent 74172bb298
commit c16dabb56b
3 changed files with 62 additions and 19 deletions

View File

@ -1,10 +1,14 @@
<?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="MobailApp.MainPage">
x:Class="MobailApp.MainPage"
MaximumHeightRequest="812"
HeightRequest="812"
MaximumWidthRequest="375"
WidthRequest="375">
<ScrollView>
<VerticalStackLayout
<!--<VerticalStackLayout
Padding="30,0"
Spacing="25">
<Image
@ -36,7 +40,44 @@
SemanticProperties.Hint="Counts the number of times you click"
Clicked="NewPageOpenbtn_Clicked"
HorizontalOptions="Fill" />
</VerticalStackLayout>
</VerticalStackLayout>-->
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="416"/>
<RowDefinition Height="19"/>
</Grid.RowDefinitions>
<StackLayout>
<StackLayout Margin="20,75,20,0">
<Label Text="Привет!"/>
<Label Text="Заполните Свои Данные Или Продолжите Через Социальные Медиа"/>
</StackLayout>
<StackLayout Margin="20,30,20,0">
<StackLayout>
<StackLayout>
<Label Text="Email"/>
<HorizontalStackLayout>
<Frame CornerRadius="15" BackgroundColor="#f7f7f9">
<Entry/>
</Frame>
</HorizontalStackLayout>
</StackLayout>
<StackLayout>
<Label Text="Пароль"/>
<HorizontalStackLayout>
<Frame CornerRadius="15" BackgroundColor="#f7f7f9">
<Entry IsPassword="True"/>
</Frame>
</HorizontalStackLayout>
</StackLayout>
</StackLayout>
<Button Text="Войти" TextColor="White"/>
</StackLayout>
</StackLayout>
<HorizontalStackLayout>
<Label/>
<Button/>
</HorizontalStackLayout>
</Grid>
</ScrollView>
</ContentPage>

View File

@ -2,29 +2,29 @@
{
public partial class MainPage : ContentPage
{
int count = 0;
//int count = 0;
public MainPage()
{
InitializeComponent();
}
private void OnCounterClicked(object sender, EventArgs e)
{
count++;
//private void OnCounterClicked(object sender, EventArgs e)
//{
// count++;
if (count == 1)
CounterBtn.Text = $"Clicked {count} time";
else
CounterBtn.Text = $"Clicked {count} times";
// if (count == 1)
// CounterBtn.Text = $"Clicked {count} time";
// else
// CounterBtn.Text = $"Clicked {count} times";
SemanticScreenReader.Announce(CounterBtn.Text);
}
// SemanticScreenReader.Announce(CounterBtn.Text);
//}
private async void NewPageOpenbtn_Clicked(System.Object sender, System.EventArgs e)
{
await Navigation.PushAsync(new NewPage1());
}
//private async void NewPageOpenbtn_Clicked(System.Object sender, System.EventArgs e)
//{
// await Navigation.PushAsync(new NewPage1());
//}
}
}

View File

@ -2,8 +2,10 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
<ActiveDebugFramework>net8.0-android</ActiveDebugFramework>
<ActiveDebugProfile>Pixel 2 Q 10.0 - API 29 (Android 10.0 — API 29)</ActiveDebugProfile>
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
<DefaultDevice>pixel_2_-_api_29</DefaultDevice>
</PropertyGroup>
<ItemGroup>
<MauiXaml Update="NewPage1.xaml">