Compartir a través de


WpfPanel Class

Definition

Represents the UI element that hosts one or more hosted applications.

public ref class WpfPanel : System::Windows::Controls::Grid, Microsoft::Uii::Desktop::UI::Controls::IPanel
public class WpfPanel : System.Windows.Controls.Grid, Microsoft.Uii.Desktop.UI.Controls.IPanel
type WpfPanel = class
    inherit Grid
    interface IPanel
Public Class WpfPanel
Inherits Grid
Implements IPanel
Inheritance
WpfPanel
Implements

Remarks

This can also host standard and custom windows controls.

Constructors

WpfPanel()

Initializes a new instance of the WpfPanel class.

Properties

DeckControl

Gets the control that lets the other class view and modify the the hosted app in the DeckControl under this panel.

Floating

Gets or sets a Boolean value that specifies whether the panel is floating or tied into the agent desktop UI.

FloatingLocation

Gets or sets the last location of the panel.

FloatingSize

Gets or sets the last size of the panel in case it is used again.

TabControl

Gets the control that allows the other class to view and modify the tab pages in the TabControl under this panel.

UseOpacity

Gets or sets a Boolean value that specifies whether the panel is made slightly transparent when it is not in focus.

Methods

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.

CloseAppClickHandler(IHostedApplication)

Called whenever the user clicks to close an application.

IsApplicationOnPanel(Guid)

Checks whether the application is on the panel.

Remove(Object)

Removes an application from the Panel.

Events

CloseApplicationClick

Used when close button is clicked on the application to pass the event back to the main UI code.

SelectedAppChanged

Used when a tab page is selected to pass the event back to the main UI code

Applies to