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"
|
||||
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="Привет!" TextColor="Black" FontSize="32" HorizontalOptions="Center"/>
|
||||
<Label
|
||||
Text="Welcome to .NET Multi-platform App UI"
|
||||
Style="{StaticResource SubHeadline}"
|
||||
SemanticProperties.HeadingLevel="Level2"
|
||||
SemanticProperties.Description="Welcome to dot net Multi platform App U I" />
|
||||
Text="Заполните Свои Данные Или" TextColor="#707B81" FontSize="16" HorizontalOptions="Center"/>
|
||||
<Label Text="Продолжите Через Социальные Медиа" FontSize="16" TextColor="#707B81" HorizontalOptions="Center"/>
|
||||
</StackLayout>
|
||||
|
||||
<Button
|
||||
x:Name="CounterBtn"
|
||||
Text="Click me"
|
||||
SemanticProperties.Hint="Counts the number of times you click"
|
||||
Clicked="OnCounterClicked"
|
||||
HorizontalOptions="Fill" />
|
||||
</VerticalStackLayout>
|
||||
</ScrollView>
|
||||
<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" Background="Transparent" HorizontalOptions="FillAndExpand" VerticalOptions="CenterAndExpand" TextColor="Black" />
|
||||
</Frame>
|
||||
|
||||
<Label Text="Пароль" Margin="20" FontSize="16"/>
|
||||
<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>
|
||||
|
@ -9,17 +9,17 @@
|
||||
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);
|
||||
//}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -4,12 +4,12 @@
|
||||
<IsFirstTimeProjectOpen>False</IsFirstTimeProjectOpen>
|
||||
<ActiveDebugFramework>net8.0-windows10.0.19041.0</ActiveDebugFramework>
|
||||
<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>
|
||||
<ItemGroup>
|
||||
<Compile Update="FlyoutPage1FlyoutMenuItem.cs">
|
||||
<SubType>Code</SubType>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<MauiXaml Update="NewPage1.xaml">
|
||||
<SubType>Designer</SubType>
|
||||
|
Loading…
x
Reference in New Issue
Block a user