Version

GetEmbeddableElement(UIElement,EmbeddableEditorOwnerBase,Object,EmbeddableUIElementBase) Method

Called from inside the UIElement.PositionChildElements method of the parent element to create and position the embedded element or elements.
Syntax
'Declaration
 
Public Overloads Function GetEmbeddableElement( _
   ByVal parentElement As UIElement, _
   ByVal owner As EmbeddableEditorOwnerBase, _
   ByVal ownerContext As Object, _
   ByVal previousElement As EmbeddableUIElementBase _
) As EmbeddableUIElementBase

Parameters

parentElement
The element that will contain the embedded element.
owner
An object that derives from the EmbeddableEditorOwnerBase class.
ownerContext
Context information that is used to get the value to render via a call to the EmbeddableEditorOwnerBase.GetValue method.
previousElement
The element returned the prior time the parent element's UIElement.PositionChildElements method was called.

Return Value

An instance of a class derived from EmbeddableUIElementBase.
Remarks

The owner and ownerContext values are saved by the added element to get value and state information later.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also