WPF ListBox not updating with the ItemsSource

后端 未结 3 1846
花落未央
花落未央 2020-12-20 14:42

I have what I believe should be simple two-way databinding in WPF setup, but the listbox (target) is not updating as the collection changes.

I\'m setting this ItemsS

3条回答
  •  半阙折子戏
    2020-12-20 15:10

    i got stuck for more than hour and then simple logic solved this problem just set itemsource to clear list and then set source u need again

    lstVariable_Selected.ItemsSource = new List();
    lstVariable_Selected.ItemsSource = m_VariableList;
    
        

    提交回复
    热议问题