Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles
(untagged)

Create Sign Up Page in Blend 2015

0.00/5 (No votes)
25 Nov 2015 1  
Create Sign Up Page using Toolbar and Navigation feature

Introduction

Hopefully, you have set your IDE for Windows Universal Platform and also created a “Hello World” project, now it's time to create a simple “Login/Registration Page” on Blend 2015 with the help of Tool Bar and use of a little Navigation feature. Follow the steps and you can create your own, here you go.

Create Project in Blend 2015

I hope you are aware of creating your own project in Blend 2015, however if you are not, there is no need to worry about it. Simply activate the Blend 2015 from your taskbar and do the following steps.

  1. Select “Universal” from the left pane shown in the circle.
  2. Select “Blank App” from the template as shown in the picture.
  3. Name your solution anything you want as I named it “Signup Page“.

    1.PNG

Designer Window

In the next phase, a designer window will be open after you created your project following the above mentioned guidelines. Divide the task into two categories.

  1. Create Sign in
  2. Create Sign up

Sign in

In order to create a sign in, use your “Tool Box” and simply drag and drop the following tools from your tool box. Tool Box is shown with help of arrow, on the left side of your designer window.

  1. Drag the “TextBlock” and drop to “Designer Window” and name it “Sign In“.
  2. Drag the “TextBlock” again and drop now on left hand side, as shown in the picture, name it “Email“.
  3. Now drag the “TextBox“ again and drop next to the “email text block“.
  4. Again drag the “TextBlock” and drop it under the “Email“, name it “password“.
  5. Now drag the “password” and drop it next to the password textblock.
  6. In the end, drag and drop the “submit “button.

(Hint… image will help you out).

3.PNG

Create Sign Up

On the same designer window , now it's time to create a “SignUp page”. The simple steps using tool box are:

  1. Drag the “Textblock” and drop under the submit button , name it”SignUp“
  2. Now select the “Textblock” and drop it under the “SignUp”, name it “First Name”.
  3. Again select the “TextBlock” and drop it under the ”First Name“, name it “Last Name“
  4. Same process repeat for ”Email” and “Password”, just select the “TextBlock” and drop them.
  5. Now use “TextBox” in front of every “TextBlock”, in SignUp, except for password.
  6. For password, select “password“ and then drop it next to “password textblock.” Image will give you the idea.
  7. Drag and drop the “button” in end, change content to “Sign Up“.

(Hint…Password will not be shown if you use that tool).

5.PNG

Navigation

Now after you created a simple “SignUp page”, we can use the Navigation feature to move to next page. For instance, when you press the sign up button, it will lead you to the next page.

  1. Go to project
  2. Select “add new item”
  3. Select “Blank Page”
  4. Name your page
  5. For instance “Navigation”

11

Creating Navigation

Once you add the page, and name it, simply drag and drop the textblock with the message “Congratulations your registration is complete” and button with the content “Go back registration page“.

8

Navigation States

There are two states, going forward and backward, so when you press the Sign Up button, it will navigate you forward to “Navigation.xaml” page and when you press go to registration page button, it will navigate you back on “Main Page”.

Navigation Forward

For the forward navigation:

  1. Double Click the “Sign up ” button.
  2. Select the sign shown in circle.
  3. Double click the click property.
  4. Notice the name of click property is “Button1_click

12

Navigation Code

When you double click “MainPage.xaml.cs” file will open, simple write these two lines of code and in this way you can navigate forward once you complete the registration page and press “Sign Up” button. Intellisense will help you out. You can see “button1_click”, same name of function and click property.

7

Navigation Backward

For backward navigation, go to your page “Navigation.xaml” and in same way double click the button.

  1. Select the button and double click on it.
  2. Select the button in circle shown in property window.
  3. Double click the content property as shown by arrow.
  4. Note that the name here is “button_click“.

9

Navigation Code

The “Navigation.xaml.cs” file will be open, simply write this code and tell the navigation about the page you want to go, when you press the button, in our case we again want to return to our main page so our code will be like this. Intellisense will help you out.

10

Overview

In a nutshell, we create a simple Sign up page using tool bar and use a little navigation to visit from one page to another.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here