View difference between Paste ID: SsVXAVsc and RcX9XJkP
SHOW: | | - or go back to the newest paste.
1
  
2
////////////////Code from Page 1///////////////
3
namespace App2
4
{
5
    public sealed partial class MainPage
6
    {
7
        public MainPage()
8
        {
9
            InitializeComponent();
10
            MotionStoryboard.Begin();
11
        }
12
        private void Click_Login(object sender, RoutedEventArgs e)
13
        {
14
            Frame.Navigate(typeof (LoginPage));
15
        }
16
        private void Click_Register(object sender, RoutedEventArgs e)
17
        {
18
            Gride.Visibility = Visibility.Visible;
19
           MotionStory.Begin();
20
        }
21
    }
22
}
23
////////////////Code from Page 2///////////////
24
namespace App2
25
{
26
    public sealed partial class LoginPage : Page
27
    {
28
        public LoginPage()
29
        {
30
            InitializeComponent();
31
        }
32
        private void button_Click(object sender, RoutedEventArgs e)
33
        {
34
            Frame.Navigate(typeof(MainWindow));   
35
        }
36
    }
37
}