Hi,
I want to show continuously a timer in my application in all screens. So I used DispatcherTimer with Send priority. But some times in screen navigation and some process of screens stuck the timer at UI for few milliseconds. So can anybody please guide me any common / generalized approach which I can use in application to display timer across the application without any kind of freezing issue?
Regards
Vipul
Amit GuptaPosted Nov 27, 2018, 7:27 AM
Well freezing the UI depends upon varous factors like RAM and other process. It seems you are playing with code and try to explore how things works, thats a good thing !
- Database processing
- Image capturing
You are adding items withing 1 millisecond, try to increase the interval and yes ofcourse, use async await keywords and work with threads.vipul langaliaPosted Nov 27, 2018, 6:26 AM
Amit GuptaPosted Nov 27, 2018, 4:59 AM