Redigera

Dela via


FrameworkElementAdapters.ContractToViewAdapter(INativeHandleContract) Method

Definition

Returns a FrameworkElement that has been converted from an INativeHandleContract.

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

Parameters

nativeHandleContract
INativeHandleContract

The INativeHandleContract that was passed across the isolation boundary between the host application and the add-in.

Returns

A FrameworkElement that will be displayed from either the host application or add-in, depending on the direction in which the UI is passed between the two.

Attributes

Applies to

See also