Solved

Windows Phone Development navigate to another page

Posted on 2014-09-15
2
231 Views
Last Modified: 2014-11-12
Hi all,
I'm trying to simply navigate to another page.
This is WP8.1 OS, Visual Studio 2013

The code referenced available is the following....
Me.Frame.Navigate(TypeOf (page_sf))

The compilier is telling me that I need "IS" after this; but no other examples found reference this approach, and I don't know what it wants after the "IS"

Me.Frame.Navigate(TypeOf (page_sf) Is )
0
Comment
Question by:Thunder724
2 Comments
 
LVL 16

Accepted Solution

by:
hjgode earned 500 total points
ID: 40324663
Hello

why do use this TypeOf pattern? The standard call is:
Private Sub HyperlinkButton_Click(sender As Object, e As RoutedEventArgs)
	Me.Frame.Navigate(GetType(page_sf))
End Sub	

Open in new window


See http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh771188.aspx?cs-save-lang=1&cs-lang=vb#code-snippet-6

TypeOf is used for comparison of types whereas GetType returns an object: http://blogs.msmvps.com/joacim/2009/08/31/gettype-and-typeof-confusion/
0
 
LVL 4

Author Comment

by:Thunder724
ID: 40325660
OMG, you are correct.  I didn't even think of that.
I'm finding code available in C# more readily then in VB and my conversion ability is new.
thanks, again.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question