FrameworkContentElement.IsInitialized 屬性

定義

取得值,這個值表示此項目是否已初始化,初始化方式可能是當做Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML) 載入,或明確地呼叫其 EndInit() 方法。Gets a value indicating whether this element has been initialized, either by being loaded as Extensible Application Markup Language (XAML)Extensible Application Markup Language (XAML), or by explicitly having its EndInit() method called.

public:
 property bool IsInitialized { bool get(); };
public bool IsInitialized { get; }
member this.IsInitialized : bool
Public ReadOnly Property IsInitialized As Boolean

屬性值

如果項目已根據先前提到的載入或方法呼叫來初始化則為 true,否則為 falsetrue if the element is initialized per the aforementioned loading or method calls; otherwise, false.

備註

如果已在專案樹狀結構中移動此專案,使其具有新的父元素,因而重新重載,則此屬性也可能 trueThis property may also be true if this element has been moved within the element tree such that it has a new parent element, and therefore becomes reloaded again.

適用於

另請參閱