FrameworkElementAdapters.ViewToContractAdapter(FrameworkElement) 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 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.