Link to home
Start Free TrialLog in
Avatar of Greg_L_WER
Greg_L_WERFlag for Canada

asked on

WPF Updating User Control's Control From Main Window

I've got a WPF application that has a Main window with a TabControl in it that I load in different user controls into.  On the Main window I have some login controls and have a public class to hold the CurUserLoggedIn object so I can access it on any of my user controls.  The problem I'm trying to solve now is that based on who is logged in elements of certain user controls contain different information.  If I log in and the user control now has "authenticated user only" content I want to be able to clear this information if the Log Out button is clicked.  What I'm hoping to be able to do is to run some update code within the user control in the Main window's logout code block.  Hopefully this makes sense.  Any help would be greatly appreciated.

Thanks,
Greg
ASKER CERTIFIED SOLUTION
Avatar of Ravi Vaddadi
Ravi Vaddadi
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Greg_L_WER

ASKER

Thanks SriVaddadi... look forward to giving it a shot.  Will let you know how it goes.

Thanks,
Greg