XamlSetMarkupExtensionEventArgs Class

Definition

为 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
Inheritance
XamlSetMarkupExtensionEventArgs

Remarks

尽管某个类可能会指示 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. XamlSetMarkupExtensionEventArgs 类报告每个尝试的标记扩展设置操作的细节,以便回调可以针对不同的 MarkupExtension 情况进行相应的分支。The XamlSetMarkupExtensionEventArgs class reports the specifics of each attempted markup extension set operation so that the callback can branch accordingly for different MarkupExtension cases.

Constructors

XamlSetMarkupExtensionEventArgs(XamlMember, MarkupExtension, IServiceProvider)

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

Properties

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

(Inherited from 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.

(Inherited from XamlSetValueEventArgs)
ServiceProvider

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

Value

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

(Inherited from XamlSetValueEventArgs)

Methods

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.

(Inherited from Object)
GetHashCode()

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

(Inherited from Object)
GetType()

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

(Inherited from Object)
MemberwiseClone()

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

(Inherited from Object)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

Applies to

See also