- 1 year ago
Open an existing view in Windows 10 Universal App in VB?
Comment
1 / 1
To open an existing view in a Windows 10 Universal App using VB, you can use the Frame.Navigate
method. Here's an example:
vb' Assuming you have a Frame control named "MainFrame" in your XAML
Private Sub OpenExistingView()
' Navigate to the existing view
MainFrame.Navigate(GetType(ExistingViewPage))
End Sub
In this example, ExistingViewPage
is the name of the page class for your existing view. Replace it with the actual name of your existing view page class.
Make sure to replace MainFrame
with the actual name of the Frame control in your XAML that you want to use for navigation.
By calling the Navigate
method and passing the GetType
of your existing view page, you can navigate to that page and display it in the Frame control.
Remember to import the necessary namespaces and ensure that your existing view page is defined correctly with the appropriate XAML and code-behind file.