diff --git a/Sources/Stim/Stim/DetailledPage.xaml b/Sources/Stim/Stim/DetailledPage.xaml index 3318e2b..93e94b7 100644 --- a/Sources/Stim/Stim/DetailledPage.xaml +++ b/Sources/Stim/Stim/DetailledPage.xaml @@ -1,29 +1,14 @@ - - - - - - - - - - - - - - - - - + diff --git a/Sources/Stim/Stim/DetailledPage.xaml.cs b/Sources/Stim/Stim/DetailledPage.xaml.cs index 52b0924..f4385bc 100644 --- a/Sources/Stim/Stim/DetailledPage.xaml.cs +++ b/Sources/Stim/Stim/DetailledPage.xaml.cs @@ -6,4 +6,8 @@ public partial class DetailledPage : ContentPage { InitializeComponent(); } + private async void goToMainPage(object sender, EventArgs e) + { + await Navigation.PushModalAsync(new MainPage()); + } } \ No newline at end of file diff --git a/Sources/Stim/Stim/HeaderView.xaml b/Sources/Stim/Stim/HeaderView.xaml new file mode 100644 index 0000000..7f0c39f --- /dev/null +++ b/Sources/Stim/Stim/HeaderView.xaml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/Sources/Stim/Stim/HeaderView.xaml.cs b/Sources/Stim/Stim/HeaderView.xaml.cs new file mode 100644 index 0000000..6cddc56 --- /dev/null +++ b/Sources/Stim/Stim/HeaderView.xaml.cs @@ -0,0 +1,13 @@ +namespace Stim; + +public partial class HeaderView : ContentView +{ + public HeaderView() + { + InitializeComponent(); + } + private async void goToMainPage(object sender, EventArgs e) + { + await Navigation.PushModalAsync(new MainPage()); + } +} \ No newline at end of file diff --git a/Sources/Stim/Stim/MainPage.xaml b/Sources/Stim/Stim/MainPage.xaml index 097d884..3661e89 100644 --- a/Sources/Stim/Stim/MainPage.xaml +++ b/Sources/Stim/Stim/MainPage.xaml @@ -1,34 +1,33 @@  + - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + @@ -36,8 +35,8 @@ - - + + @@ -45,7 +44,10 @@ - + + + + @@ -81,152 +83,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + diff --git a/Sources/Stim/Stim/MainPage.xaml.cs b/Sources/Stim/Stim/MainPage.xaml.cs index af0550d..3cad7eb 100644 --- a/Sources/Stim/Stim/MainPage.xaml.cs +++ b/Sources/Stim/Stim/MainPage.xaml.cs @@ -11,4 +11,9 @@ public partial class MainPage : ContentPage { await Navigation.PushModalAsync(new DetailledPage()); } + + private async void goToMainPage(object sender, EventArgs e) + { + await Navigation.PushModalAsync(new MainPage()); + } } diff --git a/Sources/Stim/Stim/Stim.csproj b/Sources/Stim/Stim/Stim.csproj index cfb0955..17b184f 100644 --- a/Sources/Stim/Stim/Stim.csproj +++ b/Sources/Stim/Stim/Stim.csproj @@ -48,10 +48,19 @@ + + + HeaderView.xaml + + + MSBuild:Compile + + MSBuild:Compile +