Eto.Forms.Drawable.Update

Hi @curtisw,

i am using an Eto.Forms.Drawable in my dialog and update it’s content when a user changes a value:

self.drawable.Update(self.drawable.Bounds)

The drawing is done in the OnPaint event. If works fine under Windows but not using Mac Os. The help file states:

This forces the region to be painted immediately. On some platforms, this will be similar to calling Invalidate(Rectangle) and queue the repaint instead of blocking until it is painted.

My question is, is Invalidate cross-compatible and are there any differences compared to Update ? Please let me know if you need and example which i can send via PM.

thank you,
c.

Hi @clement I use Invalidate to force repaints on windows and mac.

2 Likes

Thanks @Trav, seems like an easy fix :wink:

_
c.