How to suspend Ui changing? #19376
Replies: 4 comments
-
Sorry, I'm a beginner, so rather than an answer, take this more as a contribution to the discussion... Since I'm going through the Music Store tutorial, the first thing that comes to mind is using Delay in the binding — maybe that could help you. Alternatively, there's CanChange in the Community Toolkit. |
Beta Was this translation helpful? Give feedback.
-
Most changes queue layout and render passes to be done later. They're not performed immediately on every property change. However, limiting UI updates is still your responsibility - either through the newish |
Beta Was this translation helpful? Give feedback.
-
There is no way to stop the UI to update if your app is triggering renders by directly modifying properties bound to the UI. One possible solution, among others: |
Beta Was this translation helpful? Give feedback.
-
Sorry, my fault. actually my application refresh a bitmap form buffer again and again. it is none of avalonia's business😳 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a application which may change many properties in models in an instant, when do so, ui re-render constantly and makes my app stuck, while such high refresh rate is unnecessary, and i want app fluent more. So is there a method can suspend UI changing, like "SuspendLayout"? Or is there something i can do to solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions