Compartir a través de


WpfPanel.Add Method (Object, Boolean)

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

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)

Syntax

public object Add(
    object child,
    bool closeButton
)
Public Function Add (
    child As Object,
    closeButton As Boolean
) As Object

Parameters

  • child
    Type: System.Object

    Specifies the control or hosted application to add to the panel.

  • closeButton
    Type: System.Boolean

    True if a close button is present, otherwise false.

Return Value

Type: System.Object

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

Implements

IPanel.Add(Object, Boolean)

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.

See Also

Add Overload
WpfPanel Class
Microsoft.Uii.Desktop.UI.Controls.Wpf Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright