ResourceDictionary.EndInit 方法

定义

结束初始化阶段,并使上一个树无效,以便在初始化阶段对键所做的更改都可以得到解决。Ends the initialization phase, and invalidates the previous tree such that all changes made to keys during the initialization phase can be accounted for.

public:
 virtual void EndInit();
public void EndInit ();
abstract member EndInit : unit -> unit
override this.EndInit : unit -> unit
Public Sub EndInit ()

实现

注解

BeginInitEndInit 遵循事务模型。BeginInit and EndInit follow a transaction model. BeginInit 将字典标记为未初始化,并 EndInit 将其标记为已初始化。BeginInit marks the dictionary uninitialized and EndInit marks it initialized.

适用于