I have a way that is said when entering a chart page in my WP7 app. It creates a list of objects and populates a list box. Each ListBoxItem has a grid that contains 10 columns of data. This list also generates incredibly quickly with 1000-2000 items, but as soon as the method starts making the grid and adding them to the listbox, it is relatively slow. Now, this means that it only connects the device to half as a comparative app on my 2GN. ipod touch. So the display is very good - as long as the user wants a data chart
If the user hits the start button, the app gets out, so there is no problem. My concern is that when the user goes back to the previous page. The app is still waiting till the method does not run. I have a similar behavioral notice in more mainstream apps like a Kindle app but I do not have such pressure with the Marketplace Store! I have a progress bar which keeps moving, so the behavior is the same.
Concerned by the marketplace's disapproval, I tried to put this method in a backgroundworker process but it fails because it is in the form of UI elements. This is where the obstacle exists and that I'm getting access errors so the UI is running on the thread. Is there a way to create UI elements, such as a grid, and it can be canceled?
Are you making every If the dataset is particularly large, then you can get better performance by posting it in your post as Data Virtualization (or instead of its) < / Html> ListBoxItem manually in the UI element in the code ? If so, you will increase its performance by using the database because
ListBox item uses
VirtualizingStackPanel as a container, so it is actually enough for elements UI elements will be created and other elements are created when the user starts scrolling to scroll quickly. The Windows Phone is a great post on the Silverlight for the performance team.
Comments
Post a Comment