Metodo ValueTranslationService.TranslatePropertyValue

Chiama la logica personalizzata per convertire la proprietà specificata per l'istanza e il tipo indicati e specifica il valore da convertire.

Spazio dei nomi:  Microsoft.Windows.Design.Services
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Sintassi

'Dichiarazione
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

Parametri

  • itemType
    Tipo: System.Type
    Tipo per il quale l'utente imposta il valore della proprietà nella finestra di progettazione.
  • value
    Tipo: System.Object
    Valore impostato dall'utente nella finestra di progettazione.

Valore restituito

Tipo: System.Object
Valore convertito.

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ValueTranslationService Classe

Spazio dei nomi Microsoft.Windows.Design.Services

DesignModeValueProvider

Altre risorse

Procedura dettagliata: modifica del comportamento di una proprietà in fase di progettazione

Estensibilità di Progettazione WPF