ItemsControl.ShouldSerializeItems 方法

定义

返回一个值,该值指示序列化进程是否应序列化 Items 属性的有效值。Returns a value that indicates whether serialization processes should serialize the effective value of the Items property.

public:
 bool ShouldSerializeItems();
public bool ShouldSerializeItems ();
member this.ShouldSerializeItems : unit -> bool
Public Function ShouldSerializeItems () As Boolean

返回

如果应当序列化 true 属性值,则为 Items;否则为 falsetrue if the Items property value should be serialized; otherwise, false.

适用于