Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Windows Phone Development navigate to another page

Posted on 2014-09-15
2
Medium Priority
?
242 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 16

Accepted Solution

by:
hjgode earned 2000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

722 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