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

@ -10,7 +10,7 @@ namespace Views;
public partial class MyProfil : ContentPage public partial class MyProfil : ContentPage
{ {
public MasterManager MasterMgr => (App.Current as App).MasterMgr; 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); int receivingIndex = PriorityList.IndexOf(receivingElement);
PriorityList.Insert(receivingIndex + 1, draggedElement); 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" <ImageButton Source="arrow_back_icon.png"
HorizontalOptions="Center" VerticalOptions="Center" HorizontalOptions="Center" VerticalOptions="Center"
Aspect="Center" Scale="0.7"/> Aspect="Center" Scale="0.7"
Clicked="OnClickedReturn"/>
</Border> </Border>
</ContentView> </ContentView>

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

Loading…
Cancel
Save