Edit

Share via


FrameworkElementAdapters.ViewToContractAdapter(FrameworkElement) Method

Definition

Returns an INativeHandleContract that has been converted from a FrameworkElement.

public:
 static System::AddIn::Contract::INativeHandleContract ^ ViewToContractAdapter(System::Windows::FrameworkElement ^ root);
[System.Security.SecurityCritical]
public static System.AddIn.Contract.INativeHandleContract ViewToContractAdapter (System.Windows.FrameworkElement root);
[<System.Security.SecurityCritical>]
static member ViewToContractAdapter : System.Windows.FrameworkElement -> System.AddIn.Contract.INativeHandleContract
Public Shared Function ViewToContractAdapter (root As FrameworkElement) As INativeHandleContract

Parameters

root
FrameworkElement

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

Returns

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.

Attributes

Exceptions

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

Applies to

See also