Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
4.50/5 (2 votes)
See more:
Hi All,

I designed one Page loading control from user control, which has some animation of rotation and color changing. I am showing that Loading control (user control) on Main Page while navigating the pages when I clicked the desire menu button the loading control visibility becomes Visible. But when desire page gets loaded, i set the visibility of that loading control is Collapsed which is not happening.

On Click event of Menubutton, I set loading control's Visibility property to visible with below code
ldgwnd.Visibility = Windows.Visibility.Visible

After loading the navigation page. I set the Main Page's loading control's Visibility property to Collapsed with below code but its not working, Still loading control is visible on main page and also navigation page.

TryCast(Application.Current.RootVisual, MainPage).ldgwnd.Visibility = Windows.Visibility.Collapsed

Kindly guide me how the visibility of Loading control is set to false

Thanks and Regards
Anil
Posted
Updated 28-Mar-11 5:07am
v2
Comments
Dalek Dave 28-Mar-11 11:43am    
Always a pleasure to see a well laid out question!

1 solution

Got Solution

Try this

Dim mp = TryCast(Application.Current.RootVisual, MainPage)
mp.ldgwnd.Visibility = Windows.Visibility.Collapsed

Anil
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900