XAML的类型转换器和标记扩展。
此类型包括标记扩展和类型转换器。
获取指定组件的类型转换器。
如何:实现类型转换器。
可供类型转换器和标记扩展使用的服务上下文。
Service Contexts Available to Type Converters and Markup Extensions.
允许类型转换器访问存储在对象中的架构信息。
Allows a type converter to access schema information stored on an object.
第二个示例演示如何为自定义类型实现类型转换器。
The second shows how to implement a type converter for a custom type.
返回此类型转换器设计用于的数据类型的标准值集合。
Returns a collection of standard values for the data type that this type converter is designed for. Overrides NullableConverter.
提供将对象引用与其他表示形式相互转换的类型转换器。
Converts instances of FontStretch to and from other type representations.
包含为移动控件中的数据类型转换器提供设计时支持的类。
Provides a type converter for a property representing a data member in a data source.
当属性可以使用类型转换器时,它显示在设计器的属性浏览器中。
When a type converter is available for a property, it can be displayed in the property browser in the designer.
类型转换器执行从字符串表示形式到给定类型的转换,反之亦然。
Type converters perform conversions from a string representation to a given type and vice versa.
从默认的上下文返回此类型转换器设计用于的数据类型的标准值集合。
Returns a collection of standard values for the data type that this type converter is designed for.
从默认的上下文返回此类型转换器设计用于的数据类型的标准值集合。
Returns a collection of standard values from the default context for the data type this type converter is designed for.
如果您定义自定义属性并想让属性浏览器显示它们,则必须实现自定义类型转换器。
If you define custom properties and want the property browser to display them, you must implement custom type converters.
当与格式上下文一起提供时,返回此类型转换器设计用于的数据类型的标准值集合。
Returns a collection of standard values for the data type this type converter is designed for when provided with a format context.
常见数据类型与默认类型转换器(将数值转换为字符串,并将字符串转换为相应数据类型)相关联。
Common data types are associated with default type converters that convert values into strings and strings into the appropriate data types.
此服务使标记扩展和类型转换器将XAML名称解析为来自同一xaml源中的其他对象,同时仍位于XAML节点表示中。
This service enables markup extensions and type converters to resolve XAML names to other objects from the same XAML source while they are still in a XAML node representation.
提供指向各种主题的链接,这些主题涉及为您的组件创建设计时支持(如实现UI类型编辑器、类型转换器和自定义设计器)。
Provides links to a variety of topics related to creating design-time support for your components, such as implementing UI type editors, type converters, and custom designers.
但是,如果对具有类型转换器的成员使用转义序列,则仍有可能在由XAML编写器进行解释时,该字符串会被类型转换器转换。
However, if the escape sequence is applied to a member that has a type converter, the string might undergo type conversion when it is interpreted by a XAML writer.
提供为任意对象类型注册额外的转换器的功能。
Provides the ability to register additional converters for arbitrary object types.
转换器必须在这里将请求字符串转换为所需的对象类型,然后返回这个对象,将它存储在相应的JSF组件中。
This is where the converter must convert the request string value into the desired object type, and then return the object for storage in the corresponding JSF component.
如果转换器产生了一个交易类型的对象,随后处理类必须包含一个名为handle (trade trade)的方法。
If the converter produced an object of type trade, then the handler class must contain a method named handle (trade trade).
另一种方法是创建转换器组件,该组件使用一种类型的行为并产生另一种类型的属性。
Another approach is to create a converter component, which is a component that consumes an action of one type and produces a property of another type.
我们偏向后一种方法,因为它让我们可以将自定义转换器(自带验证逻辑)与特定的对象类型相关联,并让JSF处理这种对象类型。
We prefer the latter option because it allows us to simply associate a custom converter (with built-in validation logic) with a specific object type and have JSF handle that object type.
此工厂类在convertors . xml中存在的转换器标记中搜索该输入和输出MIME类型的组合。
This factory class searches the input and the output mime-type combination in the convertor tag present in convertors.xml.
你不觉得是为了转换器转换成一个对其他类型的值?
Don't you think converters are meant to convert value of one type to other?
转换器可以接受各种输入类型,并且这些类型在多个input标记中进行定义。
A convertor can accept various input types, and these types are defined in the multiple input tags. Here is an example.
转换器可以接受各种输出类型,并且这些类型在多个out put标记中进行定义。
A convertor can accept various output types, and these types are defined in the multiple output tags. Here is an example.
要根据485转换器内芯片选用的类型和485设备芯片选用的类型来判别的。
According to the type of chip selected in the 485 converter and the type of the 485 device.
应用推荐