diff --git a/LOLAPP/LOLAPP/View/Content/AddStratBouton.xaml.cs b/LOLAPP/LOLAPP/View/Content/AddStratBouton.xaml.cs index 40e910b..397b463 100644 --- a/LOLAPP/LOLAPP/View/Content/AddStratBouton.xaml.cs +++ b/LOLAPP/LOLAPP/View/Content/AddStratBouton.xaml.cs @@ -17,6 +17,14 @@ public partial class RegisterBouton : ContentView { InitializeComponent(); BindingContext = Mgr; + if (Mgr.UtilisateurConnecte != null) + { + StratList = Mgr.UtilisateurConnecte._strat; + } + else + { + StratList = null; + } } /// @@ -35,8 +43,5 @@ public partial class RegisterBouton : ContentView champ.Add(Mgr._champions[4]); Strategie nouvelleStrategie = new Strategie("test", "allllooo", champ); StratList.Add(nouvelleStrategie); - - // Faire défiler la ListView vers le nouvel élément ajouté - stratListView.ScrollTo(nouvelleStrategie, ScrollToPosition.End, true); } } \ No newline at end of file