FrameworkElementAdapters.ViewToContractAdapter Method (FrameworkElement)

 

Returns an INativeHandleContract that has been converted from a FrameworkElement.

Namespace:   System.AddIn.Pipeline
Assembly:  System.Windows.Presentation (in System.Windows.Presentation.dll)

[<SecurityCriticalAttribute>]
static member ViewToContractAdapter : 
        root:FrameworkElement -> INativeHandleContract

Parameters

root
Type: System.Windows.FrameworkElement

The FrameworkElement to be passed across the isolation boundary between the host application and the add-in.

Return Value

Type: System.AddIn.Contract.INativeHandleContract

An INativeHandleContract that is passed from either the host application or the add-in, depending on the direction in which the UI is passed between the two.

Exception Condition
InvalidOperationException

root is not the root element of a tree of elements.

.NET Framework
Available since 3.5
Return to top
Show: