added aurorization window
This commit is contained in:
parent
103c501d56
commit
2d3aebedf8
@ -1,20 +0,0 @@
|
|||||||
using System;
|
|
||||||
using System.Collections.Generic;
|
|
||||||
using System.Linq;
|
|
||||||
using System.Text;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
|
|
||||||
namespace MobileApp
|
|
||||||
{
|
|
||||||
public class FlyoutPage1FlyoutMenuItem
|
|
||||||
{
|
|
||||||
public FlyoutPage1FlyoutMenuItem()
|
|
||||||
{
|
|
||||||
TargetType = typeof(FlyoutPage1FlyoutMenuItem);
|
|
||||||
}
|
|
||||||
public int Id { get; set; }
|
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
public Type TargetType { get; set; }
|
|
||||||
}
|
|
||||||
}
|
|
@ -3,34 +3,39 @@
|
|||||||
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="Привет!" TextColor="Black" FontSize="32" HorizontalOptions="Center"/>
|
||||||
Style="{StaticResource Headline}"
|
|
||||||
SemanticProperties.HeadingLevel="Level1" />
|
|
||||||
|
|
||||||
<Label
|
<Label
|
||||||
Text="Welcome to .NET Multi-platform App UI"
|
Text="Заполните Свои Данные Или" TextColor="#707B81" FontSize="16" HorizontalOptions="Center"/>
|
||||||
Style="{StaticResource SubHeadline}"
|
<Label Text="Продолжите Через Социальные Медиа" FontSize="16" TextColor="#707B81" HorizontalOptions="Center"/>
|
||||||
SemanticProperties.HeadingLevel="Level2"
|
</StackLayout>
|
||||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
|
|
||||||
|
|
||||||
<Button
|
<StackLayout Grid.Row="1">
|
||||||
x:Name="CounterBtn"
|
<Label Text="Email" Margin="20" FontSize="16"/>
|
||||||
Text="Click me"
|
<Frame CornerRadius="30" BackgroundColor="#F7F7F9" Padding="5" BorderColor="Transparent">
|
||||||
SemanticProperties.Hint="Counts the number of times you click"
|
<Entry Placeholder="xyz@gmail.com" Background="Transparent" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" TextColor="Black" />
|
||||||
Clicked="OnCounterClicked"
|
</Frame>
|
||||||
HorizontalOptions="Fill" />
|
|
||||||
</VerticalStackLayout>
|
<Label Text="Пароль" Margin="20" FontSize="16"/>
|
||||||
</ScrollView>
|
<Frame CornerRadius="30" BackgroundColor="#F7F7F9" Padding="5" BorderColor="Transparent">
|
||||||
|
<Entry Placeholder="********" Background="Transparent" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" TextColor="Black" />
|
||||||
|
</Frame>
|
||||||
|
|
||||||
|
<Button Text="Восстановить" Background="Transparent" TextColor="#D8D8D8" HorizontalOptions="End"/>
|
||||||
|
<Button Text="Войти" Background="#48B2E7" Margin="10"/>
|
||||||
|
</StackLayout>
|
||||||
|
|
||||||
|
<HorizontalStackLayout Grid.Row="2" VerticalOptions="Center" HorizontalOptions="Center">
|
||||||
|
<Label Text="Вы впервые?" TextColor="#707B81" Margin="5" FontSize="12"/>
|
||||||
|
<Button Background="Transparent" Text="Создать ползователя" TextColor="Black" Margin="-10" FontSize="12"/>
|
||||||
|
</HorizontalStackLayout>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentPage>
|
</ContentPage>
|
||||||
|
@ -9,17 +9,17 @@
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnCounterClicked(object sender, EventArgs e)
|
//private void OnCounterClicked(object sender, EventArgs e)
|
||||||
{
|
//{
|
||||||
count++;
|
// count++;
|
||||||
|
|
||||||
if (count == 1)
|
// if (count == 1)
|
||||||
CounterBtn.Text = $"Clicked {count} time";
|
// CounterBtn.Text = $"Clicked {count} time";
|
||||||
else
|
// else
|
||||||
CounterBtn.Text = $"Clicked {count} times";
|
// CounterBtn.Text = $"Clicked {count} times";
|
||||||
|
|
||||||
SemanticScreenReader.Announce(CounterBtn.Text);
|
// SemanticScreenReader.Announce(CounterBtn.Text);
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -4,12 +4,12 @@
|
|||||||
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
||||||
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
|
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
|
||||||
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
|
<ActiveDebugProfile>Windows Machine</ActiveDebugProfile>
|
||||||
|
<SelectedPlatformGroup>Emulator</SelectedPlatformGroup>
|
||||||
|
<DefaultDevice>pixel_2_q_10_0_-_api_29</DefaultDevice>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-android|AnyCPU'">
|
||||||
|
<DebuggerFlavor>ProjectDebugger</DebuggerFlavor>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
|
||||||
<Compile Update="FlyoutPage1FlyoutMenuItem.cs">
|
|
||||||
<SubType>Code</SubType>
|
|
||||||
</Compile>
|
|
||||||
</ItemGroup>
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MauiXaml Update="NewPage1.xaml">
|
<MauiXaml Update="NewPage1.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user