Compartir a través de


AifWpfTabControl.ShowApplication Method

Definition

Overloads

ShowApplication(Object, Boolean)

Shows the hosted application in a new tab.

ShowApplication(Object, String, Image, Boolean)

Shows the hosted application in a new tab.

ShowApplication(Object, Boolean)

Shows the hosted application in a new tab.

public:
 System::Windows::Controls::TabItem ^ ShowApplication(System::Object ^ application, bool closeButton);
public System.Windows.Controls.TabItem ShowApplication (object application, bool closeButton);
member this.ShowApplication : obj * bool -> System.Windows.Controls.TabItem
Public Function ShowApplication (application As Object, closeButton As Boolean) As TabItem

Parameters

application
Object

Specifies the application to show

closeButton
Boolean

True to provide a close button to close dynamic application, false otherwise

Returns

The tabItem

Applies to

ShowApplication(Object, String, Image, Boolean)

Shows the hosted application in a new tab.

public:
 System::Windows::Controls::TabItem ^ ShowApplication(System::Object ^ application, System::String ^ text, System::Windows::Controls::Image ^ icon, bool closeButton);
public System.Windows.Controls.TabItem ShowApplication (object application, string text, System.Windows.Controls.Image icon, bool closeButton);
member this.ShowApplication : obj * string * System.Windows.Controls.Image * bool -> System.Windows.Controls.TabItem
Public Function ShowApplication (application As Object, text As String, icon As Image, closeButton As Boolean) As TabItem

Parameters

application
Object

Specifies the control or hosted app to be shown

text
String

Specifies the text for the tab

icon
Image

Specifies the image icon for the tab

closeButton
Boolean

True to provide a close button to close dynamic application, false otherwise.

Returns

TabItem

Remarks

The tag of the TabItem will be set with the hosted application and can be used to find the application when we know the tabItem.

Applies to