Binding Name, Surname etc... fixed. Navigation of the Profil page done
continuous-integration/drone/push Build is passing Details

pull/65/head
Roxane ROSSETTO 2 years ago
parent 765134f0ba
commit 77634b6566

@ -9,26 +9,26 @@
<local:EnumToValuesConverter x:Key="musicTypeToValueConverter"
x:TypeArguments="model:Priority"/>
</ContentPage.Resources>
<local:ContainerBase
IsNotConnected="False"
NeedReturn="True">
<local:ContainerBase.MyFlyoutContent>
<Grid RowDefinitions="250, *, *" VerticalOptions="Fill">
<VerticalStackLayout Grid.Row="1">
<Button Text="Mes Recettes" ImageSource="person_default.png" Style="{StaticResource button1}" Grid.Row="1"/>
<Button Text="Ajouter Recette" ImageSource="settings_icon.png" Style="{StaticResource button1}" Grid.Row="2"/>
<Button Text="Mes Recettes"
ImageSource="person_default.png"
Style="{StaticResource button1}"
Grid.Row="1"
Clicked="OnMyRecipeClicked"/>
<Button Text="Ajouter Recette"
ImageSource="settings_icon.png"
Style="{StaticResource button1}"
Grid.Row="2"
Clicked="OnAddRecipeClicked"/>
</VerticalStackLayout>
</Grid>
</local:ContainerBase.MyFlyoutContent>
<local:ContainerBase.MyContent>
<ScrollView>
<StackLayout >
<!--user's informations-->
@ -77,7 +77,6 @@
</DataTemplate>
</BindableLayout.ItemTemplate>
</FlexLayout>
</VerticalStackLayout>
</HorizontalStackLayout>
</StackLayout>

@ -10,7 +10,7 @@ namespace Views;
public partial class MyProfil : ContentPage
{
public MasterManager MasterMgr => (App.Current as App).MasterMgr;
public User user => (App.Current as App).CurrentUser;
public User CurrentUser => (App.Current as App).CurrentUser;
@ -38,4 +38,14 @@ public partial class MyProfil : ContentPage
int receivingIndex = PriorityList.IndexOf(receivingElement);
PriorityList.Insert(receivingIndex + 1, draggedElement);
}
private void OnMyRecipeClicked(object sender, EventArgs e)
{
Navigation.PushModalAsync(new MyPosts());
}
private void OnAddRecipeClicked(object sender, EventArgs e)
{
Navigation.PushModalAsync(new AddRecipe());
}
}

@ -16,7 +16,8 @@
<ImageButton Source="arrow_back_icon.png"
HorizontalOptions="Center" VerticalOptions="Center"
Aspect="Center" Scale="0.7"/>
Aspect="Center" Scale="0.7"
Clicked="OnClickedReturn"/>
</Border>
</ContentView>

@ -15,5 +15,10 @@ public partial class ReturnButton : ContentView
{
get => (bool)GetValue(NeedReturnProperty);
set => SetValue(NeedReturnProperty, value);
}
}
}
public void OnClickedReturn(object sender, EventArgs e)
{
Navigation.PopModalAsync();
}
}

Loading…
Cancel
Save