DataContextValueSourceAttribute-Konstruktor (String, Boolean)

Initialisiert eine neue Instanz der DataContextValueSourceAttribute-Klasse mit dem angegebenen Eigenschaftennamen und Auflistungsinformationen.

Namespace:  Microsoft.Windows.Design
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Syntax

'Declaration
Public Sub New ( _
    dataContextValueSourceProperty As String, _
    isCollectionItem As Boolean _
)
public DataContextValueSourceAttribute(
    string dataContextValueSourceProperty,
    bool isCollectionItem
)
public:
DataContextValueSourceAttribute(
    String^ dataContextValueSourceProperty, 
    bool isCollectionItem
)
new : 
        dataContextValueSourceProperty:string * 
        isCollectionItem:bool -> DataContextValueSourceAttribute
public function DataContextValueSourceAttribute(
    dataContextValueSourceProperty : String, 
    isCollectionItem : boolean
)

Parameter

  • dataContextValueSourceProperty
    Typ: System.String
    Der Name der Eigenschaft, die die Quelle des Werts des Datenkontexts ist.
  • isCollectionItem
    Typ: System.Boolean
    Gibt an, ob der Datenkontext ein Element in einer Auflistung ist.

.NET Framework-Sicherheit

Siehe auch

Referenz

DataContextValueSourceAttribute Klasse

DataContextValueSourceAttribute-Überladung

Microsoft.Windows.Design-Namespace

Weitere Ressourcen

WPF-Designer-Erweiterbarkeit