这些作业
dtSubBefore2 = DateTime.Now;
if (entryAfterNode != null)
//if (entryBefore.targetNode.Path_SetAttributes == entryAfterNode.Path_1_Original)
{
entryAfterNode.task7 = enTasks.SetAttributes;
entryAfterNode.Path_SetAttributes = entryBefore.targetNode.Path_SetAttributes;
entryAfterNode.Path_SetCopyOrAttributesSource = entryBefore.targetNode.Path_SetCopyOrAttributesSource;
entryAfterNode.Path_SetAttributesSourceBase = entryBefore.targetNode.Path_SetAttributesSourceBase;
entryAfterNode.Path_SetAttributesBase = entryBefore.targetNode.Path_SetAttributesBase;
entryAfterNode.SetFileAttributes = entryBefore.targetNode.SetFileAttributes;
// SetAttributes can set bActivated!! (because not inheritted from BeforeView)
entryAfterNode.bActivated = entryBefore.targetNode.bActivated;
}
dtSubAfter2 = DateTime.Now;
需要大约5-10毫秒,这对我来说很慢 属性以复杂的方式可视化,我循环遍历此代码达100k次 有没有办法在循环完成之前停用属性的可视化,然后更新属性可视化以使其更快?
或者我是否必须在没有OnPropertyChanged
的情况下制作额外的属性?
我还可以使用UpdateLayout
更新所有内容吗?