WPF window 1 trying to reload window 2's drop down list
Posted on 2012-09-18
In what seems so simple, I cannot get the first window to update the drop down list from a second window.
So a products window opens and all is good. A click event opens another window to add a product should it not exist already. Now in that second window I successfully add the product that is missing so I can select that value in the drop down list in window 1.
In window 2 I have:
var ProductsWindow = new Products();
When I step through the code it goes and fires everything as would be imagined.
When I click the drop down in window 1 it still doesn't have the new value. If I close and reload window 1 the value is there.
Is there like a refresh or something in WPF 4.0 that I am missing and if so how can I instantiate this method?
Please help! :)
Thanks in advance,