ValueTranslationService.TranslatePropertyValue Method
Calls custom logic to translate the specified property for the specified type and instance, and specifies the value to translate.
Namespace: Microsoft.Windows.Design.Services
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function TranslatePropertyValue ( _
itemType As Type, _
item As ModelItem, _
identifier As PropertyIdentifier, _
value As Object _
) As Object
public abstract Object TranslatePropertyValue(
Type itemType,
ModelItem item,
PropertyIdentifier identifier,
Object value
)
public:
virtual Object^ TranslatePropertyValue(
Type^ itemType,
ModelItem^ item,
PropertyIdentifier identifier,
Object^ value
) abstract
abstract TranslatePropertyValue :
itemType:Type *
item:ModelItem *
identifier:PropertyIdentifier *
value:Object -> Object
public abstract function TranslatePropertyValue(
itemType : Type,
item : ModelItem,
identifier : PropertyIdentifier,
value : Object
) : Object
Parameters
- itemType
Type: System.Type
The type for which the user sets the property value in the designer.
- item
Type: Microsoft.Windows.Design.Model.ModelItem
The item that contains the property to be translated.
- identifier
Type: Microsoft.Windows.Design.Metadata.PropertyIdentifier
The property to be translated.
- value
Type: System.Object
The value set by the user in the designer.
Return Value
Type: System.Object
The translated value.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Services Namespace
Other Resources
Walkthrough: Changing the Behavior of a Property at Design Time