Skip to main content
JimFouch
Associate III
December 12, 2019
Solved

Getting the currently Selected Page from a Swipe Container

  • December 12, 2019
  • 3 replies
  • 912 views

I'm trying to save the current selected page for a SwipeContainer in the tearDownScreen handler when a screen closes, so when that screen reopens the user is taken back to the same page they left it on.

However, I can't seem to find a way to access what the currently selected page is for the SwipeContainer. I see there is a method to set the selected page. I also see that the widget maintains the CurrentPage internally. But, I can't seem to get access to it from the view.

This topic has been closed for replies.
Best answer by Martin KJELDSEN

H Jim,

There's no method for getting the current page, it's something we'll add i think. Until then, you can just add the function yourself - The code is open. It should be pretty apparent what to return, i think.

/Martin

3 replies

Martin KJELDSEN
Martin KJELDSENBest answer
Principal III
January 9, 2020

H Jim,

There's no method for getting the current page, it's something we'll add i think. Until then, you can just add the function yourself - The code is open. It should be pretty apparent what to return, i think.

/Martin

JimFouch
JimFouchAuthor
Associate III
January 11, 2020

Martin,

Yes I was able to add the function myself and it's working well.

Thanks for your reply.