cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the currently Selected Page from a Swipe Container

JimFouch
Associate III

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Martin KJELDSEN
Chief III

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

View solution in original post

3 REPLIES 3
Martin KJELDSEN
Chief III

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

Martin,

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

Thanks for your reply.

Great, Jim. Good job.