FrameworkElement.ShouldSerializeStyle 方法

定义

返回一个值,该值指示序列化过程是否应该序列化 Style 属性的内容。Returns whether serialization processes should serialize the contents of the Style property.

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

返回

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

注解

如果 Style 是本地设置的,则会返回 trueThis will return true if the Style is locally set.

适用于