Udostępnij za pośrednictwem


WpfPanel.Add Method (Object, Boolean)

Adds a hosted application or a user WinForms control to the panel.

Namespace: Microsoft.Uii.Desktop.UI.Controls.Wpf
Assembly: Microsoft.Uii.Desktop.UI.Controls.Wpf (in Microsoft.Uii.Desktop.UI.Controls.Wpf.dll)

Usage

'Usage
Dim instance As WpfPanel
Dim child As Object
Dim closeButton As Boolean
Dim returnValue As Object

returnValue = instance.Add(child, closeButton)

Syntax

'Declaration
Public Function Add ( _
    child As Object, _
    closeButton As Boolean _
) As Object
public Object Add (
    Object child,
    bool closeButton
)
public:
virtual Object^ Add (
    Object^ child, 
    bool closeButton
) sealed
public final Object Add (
    Object child, 
    boolean closeButton
)
public final function Add (
    child : Object, 
    closeButton : boolean
) : Object

Parameters

  • child
    Specifies the control or hosted application to add to the panel.
  • closeButton
    True if a close button is present, otherwise false.

Return Value

The tabpage from the TabControl if one is used or the DeckControl

Remarks

If there are no applications on the panel, then add to DeckControl. If there is more than one application on this panel, then add to TabControl.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

See Also

Reference

WpfPanel Class
WpfPanel Members
Microsoft.Uii.Desktop.UI.Controls.Wpf Namespace

Unified Service Desk
Send comments about this topic to Microsoft.
© 2015 Microsoft. All rights reserved.