How to get topmost ScatterViewItem in a ScatterView?

735 views Asked by At

How do I get the topmost ScatterViewItem in a ScatterView?

2

There are 2 answers

2
Jobi Joy On BEST ANSWER

You can go through each of the ScatterViewitem and keep check of which ScatterViewItem.IsActive is set. that will be the topmost at that moment

For of the times it will be a loop on ScatterView.Items to iterate on ScatterViewItems

0
Robert Levy On

You need something like this:

scatterView.Items.OrderBy( s => Canvas.GetZIndex(s) ).First()