ArcGIS Pro 2.8 API Reference Guide
Create(String,String,XElement,Boolean) Method
Example 

ArcGIS.Desktop.Framework.Controls Namespace > EmbeddableControl Class > Create Method : Create(String,String,XElement,Boolean) Method
The DAML ID of the component declaring the EmbeddedControl.
The DAML category containing the EmbeddableControl
The XML configuration data.
True if the options can be edited. Default is false
Creates an instance of an EmbeddableControl and its View in a ViewModel-View fashion.
Syntax
Public Overloads Shared Function Create( _
   ByVal damlID As String, _
   ByVal category As String, _
   ByVal options As XElement, _
   Optional ByVal canChangeOptions As Boolean _
) As Tuple(Of EmbeddableControl,UserControl)

Parameters

damlID
The DAML ID of the component declaring the EmbeddedControl.
category
The DAML category containing the EmbeddableControl
options
The XML configuration data.
canChangeOptions
True if the options can be edited. Default is false

Return Value

The ViewModel-View pair.
Remarks
This function assumes the EmbeddableControl is registered in the DAML category passed in as a parameter. The DAML definition must additionally contain the View associated with the EmbeddableControl.
Example
<categories>
  <updateCategory refID="esri_embeddableControls">
    <insertComponent id="EmbeddedDockPane_control" className="SampleEmbeddableControlViewModel">
      <content className="SampleEmbeddableControlView" relatedCommand="EmbeddedDockPane_SampleDockPane_ShowButton" />
    </insertComponent>
  </updateCategory>
</categories>
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

EmbeddableControl Class
EmbeddableControl Members
Overload List