FrameworkElementAdapters.ContractToViewAdapter(INativeHandleContract) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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