FrameworkElement.ShouldSerializeStyle FrameworkElement.ShouldSerializeStyle FrameworkElement.ShouldSerializeStyle FrameworkElement.ShouldSerializeStyle Method

定義

傳回序列化 (Serialization) 處理序是否應該將 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.

備註

這會傳回true如果Style本機設定。This will return true if the Style is locally set.

適用於