Style.IsTrackingViewState 属性

定义

返回一个值,该值指示状态袋中是否有任何已定义的样式元素。Returns a value indicating whether any style elements have been defined in the state bag.

protected:
 property bool IsTrackingViewState { bool get(); };
protected bool IsTrackingViewState { get; }
member this.IsTrackingViewState : bool
Protected ReadOnly Property IsTrackingViewState As Boolean

属性值

Boolean

如果状态袋中有已定义的样式元素,则为 true;否则为 falsetrue if there are style elements defined in the state bag; otherwise, false.

实现

注解

使用 IsTrackingViewState 属性可确定状态袋中是否定义了任何样式元素。Use the IsTrackingViewState property to determine whether any style elements have been defined in the state bag. 此属性主要由控件开发人员使用。This property is primarily used by control developers.

适用于