Click here to Skip to main content
15,900,258 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I need solution to call Main Page events from usercontrol in wpf browser application
Posted
Comments
[no name] 11-Oct-12 9:12am    
What have you tried?
bbirajdar 11-Oct-12 9:16am    
@OP..What else do you need ...

1 solution

I think your thought process is a little off here. The UserControl itself should not know about its parent. That is the whole point to have user controls. If something needs to execute on the parent based on some action occuring on the user control, then the user control should raise an event that the parent can capture. That way the user control remains separated from its parent, but can communicate with it.
 
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