Compartir a través de


WpfPanel.Add Method (Object, String, Boolean, 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,
    string initializationXml,
    bool useToolbar,
    bool closeButton
)
Public Function Add (
    child As Object,
    initializationXml As String,
    useToolbar As Boolean,
    closeButton As Boolean
) As Object

Parameters

  • child
    Type: System.Object

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

  • initializationXml
    Type: System.String

    Specifies the XML string for the application being added.

  • useToolbar
    Type: System.Boolean

    True if a toolbar is used; false if the xml string should be parsed to see if one is used.

  • 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, String, Boolean, 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