打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
UIElement.InvalidateVisual

Invalidates the rendering of the element, and forces a complete new layout pass. OnRender(DrawingContext) is called after the layout cycle is completed.

使元素的呈现失效,并强制执行完整的新布局处理过程。 完成布局循环后调用 OnRender(DrawingContext)。

Remarks

This method calls InvalidateArrange internally.

This method is not generally called from your application code. The WPF framework-level layout system does its own handling of changes in the visual tree of an element, and would be calling the equivalent of this method when necessary already. Calling this method is necessary only for advanced scenarios. One such advanced scenario is if you are creating a PropertyChangedCallback for a dependency property that is not on a Freezable or FrameworkElement derived class that still influences the layout when it changes.

注解

此方法 InvalidateArrange 在内部调用。

通常不会从应用程序代码中调用此方法。 WPF 框架级别布局系统自行处理元素的可视化树中的更改,并在必要时调用此方法的等效项。 只有高级方案才需要调用此方法。 一个这样的高级方案是,如果您要 PropertyChangedCallback 为不在或派生类上的依赖属性创建, Freezable FrameworkElement 但在更改时仍会影响布局。

本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
【热】打开小程序,算一算2024你的财运
android软键盘弹出引起的各种不适终极解决方案
浅谈setOnClickListener使用方法
[Learn Android Studio 汉化教程]第五章:Reminders实验:第一部分
精益管理中车间布局的方式
android.util.AndroidRuntimeException: requestFeature() must be called before adding content
C#中的接口
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服