zoukankan      html  css  js  c++  java
  • .net c#控件 Invalidate、Update、Refresh的区别

    Invalidate marks the control (region, or rect) as in need of repainting, but
    doesn't immediately repaint (the repaint is triggered when everything else has
    been taken care of and the app becomes idle).

    Update causes the control to immediately repaint if any portions have been
    invalidated.

    Refresh causes the control to invalidate, and then update (i.e. immediately
    repaint itself).

    Most of the time Invalidate is sufficient, and advisable as you can do a bunch
    of invalidations (either explicit or implicit) and then let the control repaint
    itself when the app is idle. It is advisable to use Update or Refresh when you
    want the control to immediately repaint because the app will not be idle for a
    user-noticable period of time.

  • 相关阅读:
    1021 个位数统计
    1020 月饼
    1019 数字黑洞
    1018 锤子剪刀布
    1017 A除以B
    1016 部分A+B
    1015 德才论
    1014 福尔摩斯的约会
    cocos2d 间隔动作
    cocos2d 瞬时动作
  • 原文地址:https://www.cnblogs.com/zhangchenliang/p/2645951.html
Copyright © 2011-2022 走看看