FrameworkContentElement.IsInitialized 属性

定义

获取一个值,该值指示是否已通过将此元素作为可扩展应用程序标记语言 (XAML)Extensible Application Markup Language (XAML) 加载或显式调用它的 EndInit() 方法初始化此元素。Gets a value indicating whether this element has been initialized, either by being loaded as 可扩展应用程序标记语言 (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

属性值

Boolean

如果已通过上述加载或方法调用初始化了此元素,则为 true;否则为 falsetrue if the element is initialized per the aforementioned loading or method calls; otherwise, false.

注解

true如果此元素已在元素树中移动,使其具有新的父元素,并因此再次加载,则此属性也可能为。This 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.

适用于

另请参阅