XamlSetMarkupExtensionEventArgs 类

定义

为 XAML 对象编写器在使用标记扩展设置值时调用的回调提供数据。Provides data for callbacks that are invoked when a XAML object writer sets a value using a markup extension.

public ref class XamlSetMarkupExtensionEventArgs : System::Windows::Markup::XamlSetValueEventArgs
public class XamlSetMarkupExtensionEventArgs : System.Windows.Markup.XamlSetValueEventArgs
type XamlSetMarkupExtensionEventArgs = class
    inherit XamlSetValueEventArgs
Public Class XamlSetMarkupExtensionEventArgs
Inherits XamlSetValueEventArgs
继承
XamlSetMarkupExtensionEventArgs

注解

尽管某个类可能会指示XamlSetMarkupExtensionAttribute它处理通过标记扩展设置值的所有尝试, 但它也可能使用多个标记扩展来实现此目的。Although a class might indicate with XamlSetMarkupExtensionAttribute that it handles all attempts to set a value through a markup extension, it might also use more than one markup extension to do so. 因此, 每个设置操作最终都解析为支持代码中的单独标记扩展实现。Thus each set operation ultimately resolves to a separate markup extension implementation in the supporting code. 类报告每个尝试的标记扩展设置操作的细节, 以便回调可以针对不同MarkupExtension的情况进行相应的分支。 XamlSetMarkupExtensionEventArgsThe XamlSetMarkupExtensionEventArgs class reports the specifics of each attempted markup extension set operation so that the callback can branch accordingly for different MarkupExtension cases.

构造函数

XamlSetMarkupExtensionEventArgs(XamlMember, MarkupExtension, IServiceProvider)

初始化 XamlSetMarkupExtensionEventArgs 类的新实例。Initializes a new instance of the XamlSetMarkupExtensionEventArgs class.

属性

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().

(继承自 XamlSetValueEventArgs)
MarkupExtension

获取与此 MarkupExtension 相关的 XamlSetMarkupExtensionEventArgs 引用。Gets the MarkupExtension reference that is relevant to this XamlSetMarkupExtensionEventArgs.

Member

获取所设置的成员的 XAML 类型系统和 XAML 架构信息。Gets XAML type system and XAML schema information for the member being set.

(继承自 XamlSetValueEventArgs)
ServiceProvider

获取传递给标记扩展的服务提供程序信息。Gets service provider information that was passed to the markup extension.

Value

获取要为所设置的成员提供的值。Gets the value to provide for the member being set.

(继承自 XamlSetValueEventArgs)

方法

CallBase()

为调用针对当前活动类型基类定义的回调提供了一条途径。Provides a way to invoke a callback as defined on a base class of the current acting type.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅