Save WPF TreeView state on data reload

前端 未结 1 1304
北海茫月
北海茫月 2021-01-18 07:50

I am using TreeView to display my data in UI. Now my application refreshes every 5 seconds so that it shows the most current data. Is there a way I can save my expanded stat

1条回答
  •  北海茫月
    2021-01-18 08:12

    I solved that problem by adding IsExpanded and IsSelected properties to the object that my TreeView was bound to

    
    

    0 讨论(0)
提交回复
热议问题