Compare commits
15 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
efb2c48b48 | ||
![]() |
57bc4d0963 | ||
![]() |
9436ddca06 | ||
![]() |
9458a1c3ea | ||
![]() |
b40906f86f | ||
![]() |
ea75ef85c5 | ||
![]() |
938db3342f | ||
![]() |
9a3e50e513 | ||
![]() |
c6c0c8138b | ||
![]() |
c16dabb56b | ||
![]() |
74172bb298 | ||
![]() |
639f66993e | ||
![]() |
3a5fdb7dab | ||
![]() |
3675cf5729 | ||
![]() |
63589726bb |
155
MainPage.xaml
155
MainPage.xaml
@ -1,10 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage
|
||||||
|
x:Class="MobailApp.MainPage"
|
||||||
|
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="MobailApp.MainPage">
|
HeightRequest="812"
|
||||||
|
MaximumHeightRequest="812"
|
||||||
|
MaximumWidthRequest="375"
|
||||||
|
WidthRequest="375">
|
||||||
|
|
||||||
<ScrollView>
|
<ScrollView>
|
||||||
<VerticalStackLayout
|
<!--<VerticalStackLayout
|
||||||
Padding="30,0"
|
Padding="30,0"
|
||||||
Spacing="25">
|
Spacing="25">
|
||||||
<Image
|
<Image
|
||||||
@ -30,7 +35,149 @@
|
|||||||
SemanticProperties.Hint="Counts the number of times you click"
|
SemanticProperties.Hint="Counts the number of times you click"
|
||||||
Clicked="OnCounterClicked"
|
Clicked="OnCounterClicked"
|
||||||
HorizontalOptions="Fill" />
|
HorizontalOptions="Fill" />
|
||||||
</VerticalStackLayout>
|
<Button
|
||||||
|
x:Name="NewPageOpenbtn"
|
||||||
|
Text="New page"
|
||||||
|
SemanticProperties.Hint="Counts the number of times you click"
|
||||||
|
Clicked="NewPageOpenbtn_Clicked"
|
||||||
|
HorizontalOptions="Fill" />
|
||||||
|
</VerticalStackLayout>-->
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="746" />
|
||||||
|
<RowDefinition Height="19" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<StackLayout Grid.Row="0">
|
||||||
|
<StackLayout Margin="20,75,20,0" HorizontalOptions="Center">
|
||||||
|
<Label
|
||||||
|
FontSize="32"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Text="Привет!"
|
||||||
|
TextColor="#707B81" />
|
||||||
|
<Label
|
||||||
|
Margin="0,8,0,0"
|
||||||
|
FontSize="16"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Text="Заполните Свои Данные Или"
|
||||||
|
TextColor="#707B81" />
|
||||||
|
<Label
|
||||||
|
FontSize="16"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Text="Продолжите Через Социальные Медиа"
|
||||||
|
TextColor="#707B81" />
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Margin="20,30,20,0">
|
||||||
|
<Grid HeightRequest="244" MinimumWidthRequest="335">
|
||||||
|
<Grid HeightRequest="196" WidthRequest="335">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="80" />
|
||||||
|
<RowDefinition Height="80" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<StackLayout Grid.Row="0" MinimumWidthRequest="335">
|
||||||
|
<Label
|
||||||
|
HorizontalOptions="Start"
|
||||||
|
Text="Email"
|
||||||
|
TextColor="#707B81"
|
||||||
|
VerticalOptions="Start" />
|
||||||
|
<HorizontalStackLayout>
|
||||||
|
<Frame
|
||||||
|
Margin="0,12,0,0"
|
||||||
|
BackgroundColor="#f7f7f9"
|
||||||
|
BorderColor="#f7f7f9"
|
||||||
|
CornerRadius="15"
|
||||||
|
HeightRequest="48"
|
||||||
|
WidthRequest="335">
|
||||||
|
<Entry
|
||||||
|
x:Name="etyEmail"
|
||||||
|
HeightRequest="48"
|
||||||
|
IsReadOnly="False"
|
||||||
|
Text="xyz@gmail.com"
|
||||||
|
TextColor="#6A6A6A" />
|
||||||
|
</Frame>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout
|
||||||
|
Grid.Row="1"
|
||||||
|
Margin="0,26,0,0"
|
||||||
|
WidthRequest="335">
|
||||||
|
<Label
|
||||||
|
HorizontalOptions="Start"
|
||||||
|
Text="Пароль"
|
||||||
|
TextColor="#707B81"
|
||||||
|
VerticalOptions="Start" />
|
||||||
|
<HorizontalStackLayout>
|
||||||
|
<Frame
|
||||||
|
Margin="0,12,0,0"
|
||||||
|
BackgroundColor="#f7f7f9"
|
||||||
|
BorderColor="#f7f7f9"
|
||||||
|
CornerRadius="15"
|
||||||
|
HeightRequest="48"
|
||||||
|
WidthRequest="335">
|
||||||
|
<Grid HeightRequest="40">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition />
|
||||||
|
<ColumnDefinition Width="40" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Entry
|
||||||
|
x:Name="etyPass"
|
||||||
|
HeightRequest="48"
|
||||||
|
IsPassword="True"
|
||||||
|
IsReadOnly="False"
|
||||||
|
TextColor="#6A6A6A" />
|
||||||
|
<Button
|
||||||
|
x:Name="btnPassOpen"
|
||||||
|
Grid.Column="1"
|
||||||
|
BackgroundColor="#f7f7f9"
|
||||||
|
Clicked="btnPassOpen_Clicked"
|
||||||
|
FontSize="16"
|
||||||
|
HeightRequest="40"
|
||||||
|
Text="◉"
|
||||||
|
TextColor="Black"
|
||||||
|
WidthRequest="48" />
|
||||||
|
</Grid>
|
||||||
|
</Frame>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</Grid>
|
||||||
|
<Button
|
||||||
|
BackgroundColor="White"
|
||||||
|
Margin="0,16,0,0"
|
||||||
|
FontSize="12"
|
||||||
|
HeightRequest="36"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Text="Восстановить"
|
||||||
|
TextColor="#707B81"
|
||||||
|
VerticalOptions="End"
|
||||||
|
WidthRequest="108" />
|
||||||
|
</Grid>
|
||||||
|
<Button
|
||||||
|
Margin="0,24,0,0"
|
||||||
|
BackgroundColor="#48B2E7"
|
||||||
|
Clicked="Button_Clicked"
|
||||||
|
CornerRadius="14"
|
||||||
|
Text="Войти"
|
||||||
|
TextColor="#F7F7F9" />
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout
|
||||||
|
Grid.Row="1"
|
||||||
|
HorizontalOptions="Center"
|
||||||
|
Orientation="Horizontal"
|
||||||
|
WidthRequest="335">
|
||||||
|
<Label
|
||||||
|
Margin="35,0,0,0"
|
||||||
|
FontSize="16"
|
||||||
|
HeightRequest="19"
|
||||||
|
Text="Вы впервые?"
|
||||||
|
TextColor="#6A6A6A" />
|
||||||
|
<Button
|
||||||
|
BackgroundColor="White"
|
||||||
|
FontSize="16"
|
||||||
|
HeightRequest="40"
|
||||||
|
Text="Создать Пользователя"
|
||||||
|
TextColor="#2B2B2B" />
|
||||||
|
</StackLayout>
|
||||||
|
</Grid>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
@ -2,24 +2,54 @@
|
|||||||
{
|
{
|
||||||
public partial class MainPage : ContentPage
|
public partial class MainPage : ContentPage
|
||||||
{
|
{
|
||||||
int count = 0;
|
//int count = 0;
|
||||||
|
bool Pass = false;
|
||||||
|
string Email = "";
|
||||||
|
|
||||||
public MainPage()
|
public MainPage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnCounterClicked(object sender, EventArgs e)
|
private async void Button_Clicked(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
count++;
|
await Navigation.PushAsync(new NewPage1());
|
||||||
|
}
|
||||||
|
|
||||||
if (count == 1)
|
private async void btnPassOpen_Clicked(object sender, EventArgs e)
|
||||||
CounterBtn.Text = $"Clicked {count} time";
|
{
|
||||||
|
if(Pass == false)
|
||||||
|
{
|
||||||
|
btnPassOpen.Text = "◎";
|
||||||
|
etyPass.IsPassword = false;
|
||||||
|
Pass = true;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
CounterBtn.Text = $"Clicked {count} times";
|
{
|
||||||
|
btnPassOpen.Text = "◉";
|
||||||
SemanticScreenReader.Announce(CounterBtn.Text);
|
etyPass.IsPassword = true;
|
||||||
|
Pass = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//await Navigation.PushAsync(new NewPage2());
|
||||||
|
}
|
||||||
|
|
||||||
|
//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);
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private async void NewPageOpenbtn_Clicked(System.Object sender, System.EventArgs e)
|
||||||
|
//{
|
||||||
|
// await Navigation.PushAsync(new NewPage1());
|
||||||
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -62,4 +62,13 @@
|
|||||||
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
|
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<MauiXaml Update="NewPage1.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</MauiXaml>
|
||||||
|
<MauiXaml Update="NewPage2.xaml">
|
||||||
|
<Generator>MSBuild:Compile</Generator>
|
||||||
|
</MauiXaml>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
@ -2,10 +2,20 @@
|
|||||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
||||||
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
|
<ActiveDebugFramework>net8.0-android</ActiveDebugFramework>
|
||||||
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
|
<ActiveDebugProfile>Pixel 2 Q 10.0 - API 29 (Android 10.0 — API 29)</ActiveDebugProfile>
|
||||||
|
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
|
||||||
|
<DefaultDevice>pixel_2_-_api_29</DefaultDevice>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
<MauiXaml Update="NewPage1.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</MauiXaml>
|
||||||
|
<MauiXaml Update="NewPage2.xaml">
|
||||||
|
<SubType>Designer</SubType>
|
||||||
|
</MauiXaml>
|
||||||
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
<None Update="App.xaml">
|
<None Update="App.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</None>
|
</None>
|
||||||
|
20
NewPage1.xaml
Normal file
20
NewPage1.xaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<?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.NewPage1"
|
||||||
|
Title="NewPage1">
|
||||||
|
<VerticalStackLayout VerticalOptions="Center">
|
||||||
|
<Label
|
||||||
|
Margin="0,0,0,30"
|
||||||
|
Text="Новая страничка"
|
||||||
|
FontSize="30"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
HorizontalOptions="Center" />
|
||||||
|
<Button
|
||||||
|
x:Name="CounterBtn"
|
||||||
|
Text="Click me"
|
||||||
|
SemanticProperties.Hint="Counts the number of times you click"
|
||||||
|
Clicked="OnCounterClicked"
|
||||||
|
HorizontalOptions="Fill" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
21
NewPage1.xaml.cs
Normal file
21
NewPage1.xaml.cs
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
namespace MobailApp;
|
||||||
|
|
||||||
|
public partial class NewPage1 : ContentPage
|
||||||
|
{
|
||||||
|
int count = 0;
|
||||||
|
public NewPage1()
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
12
NewPage2.xaml
Normal file
12
NewPage2.xaml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
<?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.NewPage2"
|
||||||
|
Title="NewPage2">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<Label
|
||||||
|
Text="Welcome to .NET MAUI!"
|
||||||
|
VerticalOptions="Center"
|
||||||
|
HorizontalOptions="Center" />
|
||||||
|
</VerticalStackLayout>
|
||||||
|
</ContentPage>
|
9
NewPage2.xaml.cs
Normal file
9
NewPage2.xaml.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace MobailApp;
|
||||||
|
|
||||||
|
public partial class NewPage2 : ContentPage
|
||||||
|
{
|
||||||
|
public NewPage2()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user