c++-cx

Best practice of when to load data into a ListBox

可紊 提交于 2019-11-27 08:47:36
问题 WPF/VC++ (C++/cx) - Visual Studio 2013 So I have a ListBox thats populated with a UserControl I've created. Every time the page changes the data is lost, which is unfortunate. So I have the option of loading the data into the ListBox every time the page is loaded or passing the data around from page to page. They each have their own advantage and disadvantage but is there a practice that is preferred? I suppose the things to think about would be how many of the UserControls are in the ListBox