Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Attaches the collection of behaviors to the specified DependencyObject.
Namespace: Microsoft.Xaml.Interactivity
Assembly: Microsoft.Xaml.Interactivity (in Microsoft.Xaml.Interactivity.dll)
Syntax
'Declaration
Public Sub Attach ( _
associatedObject As DependencyObject _
)
public void Attach(
DependencyObject associatedObject
)
public:
void Attach(
DependencyObject^ associatedObject
)
member Attach :
associatedObject:DependencyObject -> unit
public function Attach(
associatedObject : DependencyObject
)
Parameters
associatedObject
Type: DependencyObjectThe DependencyObject to which to attach.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The BehaviorCollection is already attached to a different DependencyObject. |
.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.