Access items or controls of Main Page in the Child Page in UWP using VB.NET - vb.net

A control button on MainPage loads another page onto a frame. This page is being used to get user login details. It has a LOGIN button. On successful login, I wish to show the USER NAME on a textblock in MainPage. I am unable to access the textblock in mainpage in the click event of the child page.
How to go about?

Related

Finding it difficult in Qt creator to create a button to navigate pages.#qt5

help me in creating a button in Qt where the button navigate the user to a specific page and also the button is highlighted when the user is navigated to the specific page

How do I bring a User control to the front in a form

I have a loginForm.vb, and 3 user controls: promptEmail.vb, promptLogin.vb, promptEmailRecovery.vb.
When I launch the app I want the Login Form to load the promptLogin.vb by bringing it to front.
Then when I click forgot password which is a button in promptLogin.vb, I want it to load the promptEmailRecovery.vb and hide the prompt login.
How can this be done?
Bring the login prompt to the front in the designer through its context menu there. Then it'll be in front when the form loads.
In the .Click event handler for the forgot password button, Call .BringToFront() on the promptEmailRecovery user control.

Is there a way to automatically change the selected menu page in a master detail project when the detail changes?

Background:
My project uses the "Master Detail" project from Xamarin.Forms, so it comes equipped with the hamburger menu button in the top left which is supposed to be the main source of navigation throughout the app. However, my app requires the user to go through multiple of those screens without the use of the hamburger menu. But when a user uses my own buttons to change the detail, the hamburger menu still says the user is on the previous page.
For example, a user is on Page A. They click a button outside of the menu which sends them to Page B. The menu will still show Page A.
My Attempt:
I really didn't know where to start, so I tried taking the MenuItemType and passing it through the following function:
// This changes the screen without changing the menu and it works.
((MasterDetailPage)Application.Current.MainPage).Detail = new NavigationPage(new PageB());
// This was my attempt to change the menu.
(Application.Current.MainPage as MenuPage).RootPage.NavigateFromMenu((id)MenuItemType.PageB);
But that returned a Null Reference Exception when run.
I've also tried manually calling the list view associated with the hamburger menu and changing the selectedItem property, but that didn't work either. Is there any way to change the selected menu?
For Clarity:
Since StackOverflow won't let me post a video, here's a link to how the app acts. As you can see, I use the Menu to go to the "About" Page. I click a button on the screen which takes me back to the "Browse" Page. However, when I open the menu, it still says "About" is selected. I can't reselect "About" until the menu moves away, meaning I have to reopen "Browse" despite already being on that screen.
What I'm looking for is a function which will automatically change the selected menu item to "Browse" when I press that button on the "About" Page. The app is currently using a Master Detail Page which has the "Detail" component changing from the About Page to the Browse Page. The menu page is a Content Page which came built with the app beforehand.

How to maintain text in popup control even if click outside popup control

In my windows phone application I add one popup control for user login.
If user enter his credentials and click outside popup control then the data vanishes.
how to maintain data in popup even if user clicked outside popup?
Is there any property so that we can make background page ideal when popup window comes?
use IsolatedStorage for that to maintain data.
see the link
http://www.kunal-chowdhury.com/2011/06/windows-phone-7-mango-tutorial-12-using.html
hope this will help you...

How to manage page object from the other user control

I have a problem. I want to create a toolbar.xaml user control. I open a page in content of TabItem In mainpage.xaml. How can access and manage this page from the toolbar user control.
Please help. thanks..
either user static variables in parent control and call them directly in the child one.
or raise EventHandlers from child control and subscribe them in parent control.