XamlSetTypeConverterEventArgs 类

定义

为 XAML 编写器在使用类型转换器调用设置值时调用的回调提供数据。Provides data for callbacks that are invoked when a XAML writer sets a value using a type converter call.

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

注解

类型转换器用法的EventHandler<TEventArgs>回调使用具有XamlSetTypeConverterEventArgs事件数据约束的委托。Callbacks for type converter usages use the EventHandler<TEventArgs> delegate, with XamlSetTypeConverterEventArgs event data constraint.

在类级别XamlSetTypeConverterAttribute应用 (例如, 在 WPF 中的类上Setter ), 引用类型转换器用法的回调。Callbacks for type converter usages are referenced by XamlSetTypeConverterAttribute applied at the class level (for example on Setter class in WPF). 自定义XamlTypeInvoker也可以SetTypeConverterHandler通过值引用回调。A custom XamlTypeInvoker might also reference a callback through the SetTypeConverterHandler value.

构造函数

XamlSetTypeConverterEventArgs(XamlMember, TypeConverter, Object, ITypeDescriptorContext, CultureInfo)

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

属性

CultureInfo

获取调用 CultureInfo 和其他方法时可由类型转换器类使用的 ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) 信息。Gets CultureInfo information that can be used by the type converter class when calling ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) and other methods.

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)
Member

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

(继承自 XamlSetValueEventArgs)
ServiceProvider

获取可由类型转换器类使用的 IServiceProvider 信息。Gets IServiceProvider information that can be used by the type converter class.

TypeConverter

获取所调用的 TypeConverter 实例,并提供类型转换行为。Gets the TypeConverter instance that is invoked and provides type conversion behavior.

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)

适用于

另请参阅