mirror of
https://github.com/Nioux/AideDeJeu.git
synced 2025-10-29 22:45:44 +00:00
Ajout gestion back => affiche/cache le hamburger menu
This commit is contained in:
parent
d57702e9b9
commit
59cd8048e0
2 changed files with 8 additions and 5 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
<OutputType>Library</OutputType>
|
<OutputType>Library</OutputType>
|
||||||
<RootNamespace>AideDeJeu.Droid</RootNamespace>
|
<RootNamespace>AideDeJeu.Droid</RootNamespace>
|
||||||
<AssemblyName>AideDeJeu.Android</AssemblyName>
|
<AssemblyName>AideDeJeu.Android</AssemblyName>
|
||||||
<TargetFrameworkVersion>v8.0</TargetFrameworkVersion>
|
<TargetFrameworkVersion>v8.1</TargetFrameworkVersion>
|
||||||
<AndroidApplication>True</AndroidApplication>
|
<AndroidApplication>True</AndroidApplication>
|
||||||
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
<AndroidResgenFile>Resources\Resource.designer.cs</AndroidResgenFile>
|
||||||
<AndroidResgenClass>Resource</AndroidResgenClass>
|
<AndroidResgenClass>Resource</AndroidResgenClass>
|
||||||
|
|
|
||||||
|
|
@ -16,11 +16,16 @@ namespace AideDeJeu.Views
|
||||||
public ItemsPage ()
|
public ItemsPage ()
|
||||||
{
|
{
|
||||||
InitializeComponent ();
|
InitializeComponent ();
|
||||||
|
|
||||||
BindingContext = viewModel = new ItemsViewModel(Navigation);
|
BindingContext = viewModel = new ItemsViewModel(Navigation);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override bool OnBackButtonPressed()
|
||||||
|
{
|
||||||
|
IsPresented = !IsPresented;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
|
async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
|
||||||
{
|
{
|
||||||
if (args.SelectedItem is Spell)
|
if (args.SelectedItem is Spell)
|
||||||
|
|
@ -55,7 +60,5 @@ namespace AideDeJeu.Views
|
||||||
if (viewModel.Items.Count == 0)
|
if (viewModel.Items.Count == 0)
|
||||||
viewModel.LoadItemsCommand.Execute(null);
|
viewModel.LoadItemsCommand.Execute(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue