ContentElement.ShouldSerializeInputBindings 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回序列化进程是否应在此类的实例上序列化 InputBindings 属性的内容。
public:
 bool ShouldSerializeInputBindings();
	public bool ShouldSerializeInputBindings ();
	member this.ShouldSerializeInputBindings : unit -> bool
	Public Function ShouldSerializeInputBindings () As Boolean
	返回
如果应当序列化 InputBindings 属性值,则为 true;否则为 false。
注解
如果InputBindings在本地设置,则返回true此值。
提供此方法 ShouldSerialize 是因为 InputBindings 该属性没有简单的默认值。 此方法指示属性是否已从其默认值更改。 如果要开发设计器或开发包含 a UIElement的控件,通常调用此方法。
有关详细信息,请参阅 使用 ShouldSerialize 和 Reset 方法定义默认值。