Share via


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.
  • value
    Type: System.Object
    The value set by the user in the designer.

Return Value

Type: System.Object
The translated value.

.NET Framework Security

See Also

Reference

ValueTranslationService Class

Microsoft.Windows.Design.Services Namespace

DesignModeValueProvider

Other Resources

Walkthrough: Changing the Behavior of a Property at Design Time

WPF Designer Extensibility