Harvey
Harvey

Reputation: 1408

Windows 10 Universal App Navigating between pages VB.NET

Looking at various sources across the internet I have found that

Frame.Navigate(typeof (SecondaryPage))

Seems to be the method of switching pages. However, I get an error on 'SecondaryPage' Saying: SecondaryPage is a class type and cannot be used in this expression. Any Ideas?

I need navigation between a few pages

Upvotes: 0

Views: 1595

Answers (1)

Harvey
Harvey

Reputation: 1408

I have found that inspecting the App.vb provided the answer. I looked into how the app automatically loaded the first page.

In VB.NET it is

Frame.Navigate(GetType(SecondaryPage))

Upvotes: 2

Related Questions