Forum Xamarin.Forms

Why do my static variables get reset each time a new instance of a View is created?

gogobebe2gogobebe2 NZMember ✭✭
edited June 2017 in Xamarin.Forms

Ive got a grid that gets included in a control template in App.xaml. The index of "which column is selected" is defined as a static variable in this class.
The problem is, each time I navigate to a new page, this static variable gets reset back to what it was initially set as. Why? And how would I go about making a static variable that doesn't reset?


Sign In or Register to comment.