XamlSetValueEventArgs.Handled 属性

定义

获取或设置一个值,该值确定使用 XamlSetValueEventArgs 的调用方是否可以使用值,而不必调用 CallBase()Gets or sets a value that determines whether a caller that is using the XamlSetValueEventArgs can use the values without having to call CallBase().

public:
 property bool Handled { bool get(); void set(bool value); };
public bool Handled { get; set; }
member this.Handled : bool with get, set
Public Property Handled As Boolean

属性值

如果值有用并且不必调用 CallBase(),则为 true;否则为 falsetrue if the values were useful and calling CallBase() is not necessary; otherwise, false.

注解

如果回调引用为XamlSetMarkupExtensionHandlerXamlSetTypeConverterHandler具有已处理设置值尝试的代码路径, 则可以使用此属性作为 sentinel。Use this property as a sentinel for cases where a callback referenced as XamlSetMarkupExtensionHandler or XamlSetTypeConverterHandler has code pathways that has processed the set value attempt.

适用于