WpfPanel.Add Method (Object, String, Boolean, 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 initializationXml As String
Dim useToolbar As Boolean
Dim closeButton As Boolean
Dim returnValue As Object
returnValue = instance.Add(child, initializationXml, useToolbar, closeButton)
Syntax
'Declaration
Public Function Add ( _
child As Object, _
initializationXml As String, _
useToolbar As Boolean, _
closeButton As Boolean _
) As Object
public Object Add (
Object child,
string initializationXml,
bool useToolbar,
bool closeButton
)
public:
virtual Object^ Add (
Object^ child,
String^ initializationXml,
bool useToolbar,
bool closeButton
) sealed
public final Object Add (
Object child,
String initializationXml,
boolean useToolbar,
boolean closeButton
)
public final function Add (
child : Object,
initializationXml : String,
useToolbar : boolean,
closeButton : boolean
) : Object
Parameters
- child
Specifies the control or hosted app to add to the panel.
- initializationXml
Specifies the XML string for the application being added.
- useToolbar
True if a toolbar is used; false if the xml string should be parsed to see if one is used.
- 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.