Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
255
XamComboBox Value Converter when overriding the Item Data Template
posted

Hi,

Im trying to do very simple thing but facing an annoying issue:

basically I have XamComboEditor that I override its Item Data Template as simple text block so I can use a Converter with Text property binding that will display my item in certain format. When I run the app and drop down the list everything shows as expected. If I Select an Item from the drop down , the selected Item will show in the converted format as expected only if I set the ValueToDisplayConverter to the same converter used in the text block, which is fine. The problem Im facing is if I set a default value for the combobox selected item from the code behind and then run the app , the selected value will show as the string representation of my item type for example "wpfApplication1.Product", only when I click on it , it changes to the correct format....Any idea why this is happening or how to work around.

I really appreciate your fast repsonse , Im working on tight deadline

Thanks

Parents
No Data
Reply
  • 5600
    Offline posted

    Hello,

    Could you please provide us a small isolated project that reproduces this issue.

    Thanks,

    Anastas 

Children
No Data