共用方式為


WindowHelper.CreateChildElement Method (Guid, UInt32, IVsUISimpleDataSource, FrameworkElement, FrameworkElement%)

Creates and sets the element as a child of the specified parent.

Namespace:  Microsoft.Internal.VisualStudio.PlatformUI
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣告
Public Shared Function CreateChildElement ( _
    factory As Guid, _
    elementId As UInteger, _
    dataSource As IVsUISimpleDataSource, _
    parent As FrameworkElement, _
    <OutAttribute> ByRef frameworkElement As FrameworkElement _
) As Boolean
public static bool CreateChildElement(
    Guid factory,
    uint elementId,
    IVsUISimpleDataSource dataSource,
    FrameworkElement parent,
    out FrameworkElement frameworkElement
)

Parameters

  • factory
    Type: System.Guid
    The GUID of the UI factory that should the UI element.
  • elementId
    Type: System.UInt32
    The ID of the UI element to be created and displayed.

Return Value

Type: System.Boolean
true if the parent relationship could be established, otherwise false.

.NET Framework Security

See Also

Reference

WindowHelper Class

CreateChildElement Overload

Microsoft.Internal.VisualStudio.PlatformUI Namespace