cancel
Showing results for 
Search instead for 
Did you mean: 

Invalidate/redraw entire screen

Tobias1
Associate

I would like to trigger a complete redraw / invalidate of the current screen content.

So far I have only found https://community.st.com/s/question/0D53W00000Ug1dASAR/touchgfx-invalidateredraw-entire-viewscreen.

Calling view.getRootContainer().invalidate() in presenter also works.

However, since I need the redraw in all screens, the implementation in each individual presenter is not very smart.

I use partial frame buffers.

How can I trigger a redraw of the current screen from the model?

1 REPLY 1
Alexandre RENOUX
Principal

Hello Tobias,

Unfortunately, you cannot. The invalidation happens in the view. The model is only storing data and acts as the interface between the UI and the backend system. If you read the following article, this should make you understand better.

/Alexandre