A
A
Andrey Kornev2014-04-02 17:33:30
Windows phone
Andrey Kornev, 2014-04-02 17:33:30

How to solve the problem with the output of the main news (windows phone)?

Good day. Faced a problem.
The main page of the application displays top news and regular ones.
I use longlistselector.
Initially, I put a StackPanel in the ScrollViewer and already there 2 LongListSelector. It worked properly, but as it turned out, this solution has low performance, large page rendering delays (delays of 1-2 seconds) are unacceptable for a fairly simple application.
Now I tried to put the second LongListSelector into the header of one LongListSelector. Works much faster, but strange behavior. When returning to the page, the header elements flash very unpleasantly. Found LongListSelector.ListHeaderTemplate but didn't find normal examples or documentation.
How to implement this whole thing correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
omelics, 2014-05-17
@omelics

If I understood correctly, then the list should display the heading "top stories", after it - the list of top stories, then the heading "regular news", after it - the list of regular news and so that the whole thing scrolls like one big list. For such cases, it is better to use the LongListSelector's ability to display data grouped by key. An example implementation can be viewed on MSDN .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question