Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am working on an application ,where I have a parent wpf window and multiple user controls on it.I want to click on button which is on one User control and get data from Main window.Can anyone help me, how to get data from main window?

What I have tried:

Can anyone send me some links for this task.
Posted
Updated 25-Jul-16 0:42am
v2
Comments
Bernhard Hiller 21-Jul-16 3:05am    
Do you understand the basics of DataBinding and ViewModel?
Farah Uzma 21-Jul-16 3:29am    
I have some Knowledge.But I am confused, how to apply it.

1 solution

I found some links for this problems and now it is working.

c# - Call public function in Main Window from a User Control WPF - Stack Overflow[^]
 
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