fix bug navigation (fleche back en haut de la mainpage) + ajout d'une scrollview pour les petits écrans

Popup_qui_marche_pas
Anthony RICHARD 2 years ago
parent 0b97741f7c
commit 83fbe2c23b

@ -3,6 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="Stim.LoginPage"
Title="LoginPage">
<ScrollView>
<Grid BackgroundColor="{StaticResource Tertiary}" ColumnDefinitions="*, 5*, *" RowDefinitions="auto, *">
<VerticalStackLayout BackgroundColor="Black" Grid.Column="0"/>
<VerticalStackLayout BackgroundColor="Black" Grid.Column="2"/>
@ -15,13 +16,15 @@
IsPassword="False"
x:Name="Username"
HeightRequest="50"
ClearButtonVisibility="WhileEditing"/>
ClearButtonVisibility="WhileEditing"
Text="anthony"/>
<Entry Placeholder="Mot de passe"
PlaceholderColor="{StaticResource Primary}"
IsPassword="True" x:Name="Pswd"
HeightRequest="50"
Grid.Row="1"
ClearButtonVisibility="WhileEditing"/>
ClearButtonVisibility="WhileEditing"
Text="anthony5"/>
<Grid Grid.Row="2"
Margin="10,0,0,10" ColumnDefinitions="3*, *">
@ -40,4 +43,5 @@
</HorizontalStackLayout>
</Grid>
</Grid>
</ScrollView>
</ContentPage>

@ -22,7 +22,7 @@ public partial class LoginPage : ContentPage
{
((App)App.Current).Manager.CurrentUser = user;
Application.Current.MainPage = new AppShell();
await Shell.Current.GoToAsync("//MainPage");
await Navigation.PushModalAsync(new MainPage());//Shell.Current.GoToAsync("//MainPage");
}
else Error.Children.Add(new Label { Text = "Mot de passe incorrect",
TextColor = Colors.Red,

Loading…
Cancel
Save