Silverlight combobox selecteditem not updating the tao of dating by dr ali benazir

Mode One Way is Source to Target and therefore makes the Source Read Only which results in never updating the Source. I've been fighting with this issue for hours today, and you know what I found out? The list that was populating the Combo Box was Int64, and I was trying to store the value in an Int32 field!

No errors were being thrown, it just wasn't storing the values!

If I sit in a break point and wait a few seconds it works as expected. End Update I have an application using in WPF using MVVM with a Combo Box. The issue I'm having is when we leave our page and migrate back the Combo Box is not selecting the current Value that is selected.

In WPF, everytime you navigate to a Page everything gets re-initialized, constructor gets called, loaded methods, everything.The object is returning the correct object via the get in the property though.I'm not sure if this is just an issue with the way the Combo Box and MVVM pattern works. I have had similar issues and it was solved by making sure I was implementing IEquatable properly.I have noticed that the Selected Index property doesn't cause the same bug.If you can restructure your View Model to expose the index of the selected item, and bind to that, you should be good to go. First add the following code to the View Is Synchronized With Current Item="True".

Search for silverlight combobox selecteditem not updating:

silverlight combobox selecteditem not updating-45silverlight combobox selecteditem not updating-84silverlight combobox selecteditem not updating-69silverlight combobox selecteditem not updating-15

Leave a Reply

Your email address will not be published. Required fields are marked *

One thought on “silverlight combobox selecteditem not updating”