DispatcherTimer冻结问题 [英] DispatcherTimer freeze issue
问题描述
我想在所有屏幕中连续显示我的应用程序中的计时器。所以我使用了DispatcherTimer和Send优先级。但有时在屏幕导航和屏幕的某些过程中,计时器会在UI上停留几毫秒。那么任何人都可以指导我
我可以在应用程序中使用任何常见/通用方法在整个应用程序中显示计时器而没有任何冻结问题吗?
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?
问候
Vipul
推荐答案
您好Vipul_Langalia,
Hi Vipul_Langalia,
>> 我想在我的应用程序中连续显示所有屏幕中的计时器。所以我使用了DispatcherTimer和Send优先级。但是在屏幕导航中有些时候是
,屏幕的某些过程会在UI上停留计时器几毫秒。
>>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.
关于这一点,你能在这里提供样品,因为我想知道你如何使用dispatcherTime用发送优先级做一个定时器。我也希望
知道屏幕卡住的原因。
最好的问候,
Cherry
这篇关于DispatcherTimer冻结问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!