ContentElement.ShouldSerializeInputBindings 方法
定义
返回序列化进程是否应在此类的实例上序列化 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
;否则为 false
。true
if the InputBindings property value should be serialized; otherwise, false
.
注解
true
如果 InputBindings 是本地设置的,则会返回。This will return true
if InputBindings is locally set.
ShouldSerialize
提供此方法是因为 InputBindings 属性没有简单的默认值。This 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.