Swipe Layers in WPF

1100
5
03-28-2019 09:01 AM
KeithGemeinhart1
New Contributor III

Has anyone implemented the classic layer swipe feature in a WPF application? Looking for example code or ideas on how to implement it.

0 Kudos
5 Replies
JoeHershman
MVP Regular Contributor

Excuse my ignorance, but what is a classic layer swipe

Thanks,
-Joe
0 Kudos
KeithGemeinhart1
New Contributor III

Many of the ESRI demos have this as a feature. You have a handle that you can drag across the map (left-right). As you "swipe" from one side to the other, the top layer is "peeled back" to reveal the layer under it. If you stop in the middle, you'll essentially have a split screen showing 2 layers.

0 Kudos
ThadTilton
Esri Contributor

We have a sample for v10.2 - https://developers.arcgis.com/net/10-2/sample-code/SwipeMap/

I haven't tried it with v100.x.

0 Kudos
KeithGemeinhart1
New Contributor III

Thanks for the link. But it looks like the 10.2.7 version has a Thumb class to support the swipe operation. Unless I'm missing it, the 100.x runtime doesn't have a Thumb class.

0 Kudos
dotMorten_esri
Esri Notable Contributor
0 Kudos