ContentElement.ShouldSerializeInputBindings 方法

定义

返回序列化进程是否应在此类的实例上序列化 InputBindings 属性的内容。

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

返回

Boolean

如果应当序列化 InputBindings 属性值,则为 true;否则为 false

注解

如果InputBindings在本地设置,则返回true此值。

提供此方法 ShouldSerialize 是因为 InputBindings 该属性没有简单的默认值。 此方法指示属性是否已从其默认值更改。 如果要开发设计器或开发包含 a UIElement的控件,通常调用此方法。

有关详细信息,请参阅 使用 ShouldSerialize 和 Reset 方法定义默认值

适用于