diff --git a/AideDeJeu/AideDeJeu/AideDeJeu.csproj b/AideDeJeu/AideDeJeu/AideDeJeu.csproj index d8746c7e..eecb3d7e 100644 --- a/AideDeJeu/AideDeJeu/AideDeJeu.csproj +++ b/AideDeJeu/AideDeJeu/AideDeJeu.csproj @@ -65,4 +65,10 @@ + + + MSBuild:UpdateDesignTimeXaml + + + \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu/App.xaml.cs b/AideDeJeu/AideDeJeu/App.xaml.cs index 9709cfee..c9af1a48 100644 --- a/AideDeJeu/AideDeJeu/App.xaml.cs +++ b/AideDeJeu/AideDeJeu/App.xaml.cs @@ -18,7 +18,7 @@ namespace AideDeJeu DependencyService.Register(); var vm = DependencyService.Get(); var mainPage = new ItemDetailPage(new ItemDetailViewModel(new HomeItem()));// new MainPage(); - var navigationPage = new NavigationPage(mainPage); + var navigationPage = new MainNavigationPage(mainPage); vm.Navigator = new Navigator(navigationPage.Navigation); //mainPage.Detail.Navigation); MainPage = navigationPage; } diff --git a/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml b/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml new file mode 100644 index 00000000..4acc33c5 --- /dev/null +++ b/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml @@ -0,0 +1,5 @@ + + + \ No newline at end of file diff --git a/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml.cs b/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml.cs new file mode 100644 index 00000000..163b53b0 --- /dev/null +++ b/AideDeJeu/AideDeJeu/Views/MainNavigationPage.xaml.cs @@ -0,0 +1,25 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +using Xamarin.Forms; +using Xamarin.Forms.Xaml; + +namespace AideDeJeu.Views +{ + [XamlCompilation(XamlCompilationOptions.Compile)] + public partial class MainNavigationPage : NavigationPage + { + public MainNavigationPage () + { + InitializeComponent (); + } + + public MainNavigationPage(Page root) : base(root) + { + InitializeComponent(); + } + } +} \ No newline at end of file