Stick an UI element of ScrollViewer at top of the region once it reaches the Top of the ScrollViewer.

guess_me_if_u_can 126 Reputation points
2020-06-28T14:00:46.807+00:00

Hai, I need a solution to acheive a UI behaviour. In my case i have a list. in top of the list there is a list header (red grid in image). at top of the list header there is a region for showing description (green grid in image).

10838-111.png

I need to scroll this UI elements in a behaviour that all the 3 elements should scroll until the list header (red) reaches the top. Once list header reaches top it should stick at the top of the scroll region and the listview need to scroll further. (like shown in next img) 10817-112.png

The scroll up should also behaves in the same way that once the list scroll reaches the top, the header and description region needs to down smoothly.

Kindly help me to acheive this. Thanks in advance.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Matt Lacey 791 Reputation points MVP
    2020-06-28T20:46:01.99+00:00

    You could do this by putting all the items (employees) in a single group and making the Red area a header, then set AreStickyGroupHeadersEnabled.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.