Share via


DataContextValueSourceAttribute Constructor (String, Boolean)

Initializes a new instance of the DataContextValueSourceAttribute class with the specified property name and collection information.

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
)

Parameters

  • dataContextValueSourceProperty
    Type: System.String
    The name of the property that is the source of the data context’s value.
  • isCollectionItem
    Type: System.Boolean
    Indicates whether the data context is an item in a collection.

.NET Framework Security

See Also

Reference

DataContextValueSourceAttribute Class

DataContextValueSourceAttribute Overload

Microsoft.Windows.Design Namespace

Other Resources

Understanding WPF Designer Extensibility