Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画布仅在调整窗口大小时刷新。当我调整窗口大小时会发生什么以及如何模拟它来更新画布?
当您想要强制重绘时,您可以在画布上调用InvalidateSurface方法。请记住在主线程上执行此操作(如果您还没有使用它):
Device.BeginInvokeOnMainThread (() => { canvas.InvalidateSurface(); });