J
J
jnas2015-01-15 16:25:07
Windows phone
jnas, 2015-01-15 16:25:07

Windows Phone 8.1 - how to make dynamic data loading (C#, XAML)?

Hello, I
just started learning C# programming, XAML under windows phone 8.1
I'm interested in the question of how you can dynamically load content by scrolling down.
For example, I receive information from a database with a step, the step increases all the time when scrolling down.
How do I dynamically add this data to the start screen? I began to read looking for examples, I found an example similar to Silverlight (here I had questions like "what is this ???") and the example was Visual Studio 2013 (creating an application with data binding) using LongListSelector
Is it possible to organize this without Silverlight?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey, 2015-01-15
@Priest512

There is a special incremental load for this, I somehow implemented a similar function, a bit complicated in my opinion, but it makes optimal use of system resources. The manual has a good example and description of such a thing. I don't remember exactly where it is, but it's definitely there. What I can point out is that you create an abstract class that implements the IList, ISupportIncrementalLoading, INotifyCollectionChanged interfaces. From it you create another class, and in it a method that will load data. This, of course, is all very simply described, but in brief the algorithm is as follows.

D
Denis Antonenko, 2015-01-15
@dabrahabra

I think so, try using the ItemRealized and ItemUnrealized events .
You can also track the position of the scroll and load new data when approaching the end of the content.

M
Mickael, 2015-01-19
@Mickael

As Google says to help) www.codeproject.com/Articles/34405/WPF-Data-Virtua...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question