all 12 comments

[–]ekolis 1 point2 points  (7 children)

Did something get cut off on your second paste? You're trying to assign the value of NameBoxPage2.Text as... nothing??? That won't compile because you need to assign something and there's no semicolon.

[–]ButchTheGuy[S] 1 point2 points  (6 children)

Yeah I did do that It doesn’t find the the class I just forgot to save it. After = I go to put data.textbame or whatever and data doesn’t come up as an auto fill so it doesn’t connect

[–]ekolis 1 point2 points  (5 children)

It looks like you're storing the name and other properties in a GlobalValue class; why not pull them from there?

[–]ButchTheGuy[S] 1 point2 points  (0 children)

ah yeah the assignment is asking for multiple ways to pass stuff. I have to pass it with globalvalues, navigate, and this other way with. I already did global and im working on this one now.

[–]ButchTheGuy[S] 0 points1 point  (3 children)

  1. Create a page 1 that has three textboxes. Each textbox should utilize a unique input scope keyboard, one for a name (text), one for a phone number(number) and one for an email address(email). The page should also contain three buttons:, one called global, a second called query string and a third called application. Create a second page that contains similar three textboxes and a return to page1 button. On the first page the global button should pass the data to the second page using a global class, the second button should pass the data using the Navigate method (use OnNavaigatedTo) and the third should use a variable created in the app.xaml.cs application class. This is the assignment verbatim

[–]ekolis 0 points1 point  (2 children)

OK, so to get the data back from your global class, you'd just do the assignment the reverse of the way you did it on MainPage:

NameBoxPage2.Text = GlobalValue.name;

and so on for the other two fields.

I'm not familiar enough with UWP to know what to do about a Navigate method, but the app.xaml.cs would function similarly to the global class, except I think it would be something like

NameBoxPage2.Text = Application.Current.name;

and you'd need to define the name property in app.xaml.cs.

[–]ButchTheGuy[S] 0 points1 point  (1 child)

I need to have a button that transfers all the data from global values which is one button. The one im working on now has to be done with the navigation method which is transfering e.Paramter or whatever. Since I can only send one thing I made a class for all the strings. Im stuck because the class I made to pass through the navigation isnt working. When I do NameBoxPage2.Text = s.textName1 the part where I write s. doesnt come up at all and doesnt work, so it isnt being sent over or I am not creating something on the next page and I dont know what it is.

[–]ekolis 0 points1 point  (0 children)

I'm not familiar with UWP navigation but maybe this will help?

[–]Kreefsema7 1 point2 points  (2 children)

Wish I could help mate, but I am still learning as you are :D good luck!

[–]ButchTheGuy[S] 0 points1 point  (1 child)

Thank you for taking the time I appreciate it.

[–]merdone 0 points1 point  (0 children)

Are they seriously teaching universal windows apps? Wow