Share via


WpfPanel.Add Method

Definition

Overloads

Add(Object, Boolean)

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

Add(Object, String, Boolean, Boolean)

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

Add(Object, Boolean)

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

public:
 virtual System::Object ^ Add(System::Object ^ child, bool closeButton);
public object Add (object child, bool closeButton);
abstract member Add : obj * bool -> obj
override this.Add : obj * bool -> obj
Public Function Add (child As Object, closeButton As Boolean) As Object

Parameters

child
Object

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

closeButton
Boolean

True if a close button is present, otherwise false.

Returns

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

Implements

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.

Applies to

Add(Object, String, Boolean, Boolean)

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

public:
 virtual System::Object ^ Add(System::Object ^ child, System::String ^ initializationXml, bool useToolbar, bool closeButton);
public object Add (object child, string initializationXml, bool useToolbar, bool closeButton);
abstract member Add : obj * string * bool * bool -> obj
override this.Add : obj * string * bool * bool -> obj
Public Function Add (child As Object, initializationXml As String, useToolbar As Boolean, closeButton As Boolean) As Object

Parameters

child
Object

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

initializationXml
String

Specifies the XML string for the application being added.

useToolbar
Boolean

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

closeButton
Boolean

True if a close button is present, otherwise false.

Returns

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

Implements

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.

Applies to