Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I tried UIElement.InvalidateVisual but it didn't work.


I'm trying to refresh the combo boxes and data grids of my user controls. Apparently, I have 2 user controls, one for adding, updating, and deleting an entry and one for data grids with combo box. If I decided to add a new entry, the combo box must be updated with my new entry. I'm using Modern UI's List Page but by using this, the user control's constructor is just being called the moment I called it and never ever again being called, thus prohibiting me to refresh the contents of each combo boxes and user controls
Posted
Updated 23-Aug-14 10:29am
v2
Comments
Sergey Alexandrovich Kryukov 22-Aug-14 1:44am    
Without explaining what do you want to achieve, why do you want to refresh something and what is it (in most cases, no "refresh" is needed), what did you try, what happened and why do you feel it was wrong, the question makes no sense at all. No relevant detail — no answer. (I mean, not real answer. :-)
—SA
Kokombads 23-Aug-14 16:30pm    
sorry, I had a hard time posting the whole paragraph because of my broadband signal, I updated it now X)))
[no name] 23-Aug-14 16:43pm    
Learn about databinding.

1 solution

Just go through the following link
http://stackoverflow.com/questions/1901281/how-can-i-refresh-a-custom-wpf-user-control-from-code-behind

I hope that it satisfies your requirement.
 
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