I have information from DB. Information may be supplemented. According to the amount of information, Below I gave an example of how it should look like:

enter image description here

Each page shows 2 items. When we click on the "trace" and "before" buttons, an animation should occur, and the next 2 pieces of information will be shown.

I have to generate this dynamic. There are options?

  • one
    And where did the demand come from that the animation should be dynamically generated? Looks the same anyway. - VladD

2 answers 2

I would still do everything using a ListBox with a WrapPanel as a panel. And turned on his page scrolling. Like that:

 <ListBox x:Name="DataList"> <ListBox.ItemsPanel> <ItemsPanelTemplate> <WrapPanel Orientation="Horizontal"/> </ItemsPanelTemplate> </ListBox.ItemsPanel> </ListBox> 

And on the button, simply select the desired item and call ScrollIntoView

 DataList.ScrollIntoView(item); 

    It's not entirely clear what needs to be generated dynamically. But if I correctly captured the essence of the question, then my decision is to have a second copy of the overlaid screen, fill in the necessary data with a click of any button and place it out of sight on the right or left correspondingly. After preparing the data, do a parallel animation of these 2 "screens".

    • And it will not take time? All the same, the data will be pulled out of the database. - Shynaz Alish