I want to create a timer when user open the page and close it when leave the page.
I know I can use Device.StartTimer to do it.
but If I open and close it very quickly it may open two or more timers.
one not closed then open another.
If I add a flag IsWorking then it will create more too.
how to do it?