Solved

Windows Phone Development navigate to another page

Posted on 2014-09-15
2
223 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Loop not working 29 47
Runtime Exceptions when trying to submit data 28 37
Server Error 11 47
Visual Studio TFS - how do I check in my code? 2 29
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

920 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now