Browse Source

Завершенная работа

Ethosa 3 years ago
parent
commit
a043e8fc9a
3 changed files with 71 additions and 1 deletions
  1. 1 1
      Pages/AuthPage.xaml.cs
  2. 27 0
      Pages/CustomerMenu.xaml
  3. 43 0
      Pages/CustomerMenu.xaml.cs

+ 1 - 1
Pages/AuthPage.xaml.cs

@@ -32,7 +32,7 @@ namespace bebra.Pages
 
         private void Button_Click(object sender, RoutedEventArgs e)
         {
-            NavigationService?.Navigate(new Page2());
+            NavigationService?.Navigate(new CustomerMenu());
         }
     }
 }

+ 27 - 0
Pages/CustomerMenu.xaml

@@ -0,0 +1,27 @@
+<Page x:Class="bebra.Pages.CustomerMenu"
+      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
+      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
+      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
+      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
+      xmlns:local="clr-namespace:bebra.Pages"
+      mc:Ignorable="d" 
+      d:DesignHeight="450" d:DesignWidth="800"
+      Title="CustomerMenu" Background="White">
+
+    <Grid>
+        <Grid.ColumnDefinitions>
+            <ColumnDefinition Width="*"/>
+            <ColumnDefinition Width="257"/>
+            <ColumnDefinition Width="*"/>
+        </Grid.ColumnDefinitions>
+        <Grid.RowDefinitions>
+            <RowDefinition Height="*"/>
+            <RowDefinition Height="70"/>
+            <RowDefinition Height="*"/>
+        </Grid.RowDefinitions>
+        <Button Content="переход 1" Click="ButtonPage1_OnClick" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Height="24"/>
+        <Button Content="переход 3" Click="ButtonPage3_OnClick" Grid.Column="1" Grid.Row="1" VerticalAlignment="Top" Margin="0,47,0,0" Height="23"/>
+        <Button Content="переход 2" Click="ButtonPage2_OnClick" Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Height="23"/>
+
+    </Grid>
+</Page>

+ 43 - 0
Pages/CustomerMenu.xaml.cs

@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+using System.Windows.Data;
+using System.Windows.Documents;
+using System.Windows.Input;
+using System.Windows.Media;
+using System.Windows.Media.Imaging;
+using System.Windows.Navigation;
+using System.Windows.Shapes;
+
+namespace bebra.Pages
+{
+    /// <summary>
+    /// Логика взаимодействия для CustomerMenu.xaml
+    /// </summary>
+    public partial class CustomerMenu : Page
+    {
+        public CustomerMenu()
+        {
+            InitializeComponent();
+        }
+
+      
+
+        private void ButtonPage1_OnClick(object sender, RoutedEventArgs e)
+        {
+            NavigationService?.Navigate(new Page2());
+        }
+
+        private void ButtonPage2_OnClick(object sender, RoutedEventArgs e)
+        {
+            NavigationService?.Navigate(new AuthPage());
+        }
+        private void ButtonPage3_OnClick(object sender, RoutedEventArgs e)
+        {
+            NavigationService?.Navigate(new Menu());
+        }
+
+    }
+}