Silverlight ComboBox and SelectedItem

前端 未结 2 1738
無奈伤痛
無奈伤痛 2021-01-18 20:34

I have the following scenario:

1 List which contains the months of the year:

public List Months
{
    get
    {
        return m_Months         


        
2条回答
  •  别那么骄傲
    2021-01-18 20:54

    How are you setting the Month property? I'm not sure how the ComboBox determines if two items are the same or not, but I could see that it wouldn't work correctly if you pass in "May" rather than Months[4]. As a test, you could try passing in one of the strings from you list to see if that fixes the problem or not.

提交回复
热议问题