Solved

Windows Phone Development navigate to another page

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

18 Experts available now in Live!

Get 1:1 Help Now