ContentElement.ShouldSerializeInputBindings ContentElement.ShouldSerializeInputBindings ContentElement.ShouldSerializeInputBindings ContentElement.ShouldSerializeInputBindings Method

定義

傳回序列化 (Serialization) 處理序是否應該在這個類別的執行個體上,將 InputBindings 屬性的內容序列化。Returns whether serialization processes should serialize the contents of the InputBindings property on instances of this class.

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

傳回

如果應序列化 InputBindings 屬性值,則為 true,否則為 falsetrue if the InputBindings property value should be serialized; otherwise, false.

備註

true 如果InputBindings在本機設定, 則會傳回。This will return true if InputBindings is locally set.

因為屬性沒有簡單的預設值, 所以提供了這個ShouldSerialize方法。 InputBindingsThis ShouldSerialize method is provided because the InputBindings property does not have a simple default value. 這個方法會指出屬性是否已從其預設值變更。This method indicates whether the property has changed from its default value. 如果您要開發設計工具或開發自己的UIElement控制項來加入, 通常會叫用這個方法。You typically invoke this method if you are either developing a designer or developing your own control incorporating a UIElement.

如需詳細資訊, 請參閱使用 ShouldSerialize 和 Reset 方法定義預設值For more information, see Defining Default Values with the ShouldSerialize and Reset Methods.

適用於