How to make a render loop in WPF?

后端 未结 1 1495
旧时难觅i
旧时难觅i 2020-12-18 01:37

How can I create a loop that will be continuously executed whenever the message loop is idle in WPF?

The goal here is to perform some long running graphical update

相关标签:
1条回答
  • 2020-12-18 02:33

    The best way to do this is to use the per-frame callbacks provided by the static CompositionTarget.Rendering event.

    0 讨论(0)
提交回复
热议问题