Compartir a través de


WpfDesktopApplicationUI Class

 

Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2013, Dynamics CRM 2015, Dynamics CRM 2016

Separates the details of hosting applications and their UIs from the layout of the agent desktop form. It keeps a collection of WpfPanels and exposes itself as a collection of IHostedApplication objects.

Namespace:   Microsoft.Uii.Desktop.UI.Controls.Wpf
Assembly:  Microsoft.Uii.Desktop.UI.Controls.Wpf (in Microsoft.Uii.Desktop.UI.Controls.Wpf.dll)

Inheritance Hierarchy

System.Object
  Microsoft.Uii.Desktop.UI.Controls.DesktopApplicationUIBase
    Microsoft.Uii.Desktop.UI.Controls.Wpf.WpfDesktopApplicationUI

Syntax

public class WpfDesktopApplicationUI : DesktopApplicationUIBase
Public Class WpfDesktopApplicationUI
    Inherits DesktopApplicationUIBase

Constructors

Name Description
System_CAPS_pubmethod WpfDesktopApplicationUI()

Initializes a new instance of the WpfDesktopApplicationUI class.

Properties

Name Description
System_CAPS_pubpropertySystem_CAPS_static ActivePanel

Gets or sets the panel which hosts the application currently in use. This panel may contain more than one application.

System_CAPS_pubproperty Applications

List of active applications across all panels. This permits the AppsUI class to act as an enumerator for IHostedApplications.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty CloseApplicationClick

Gets or sets the event handler to handle application close.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty FloatingForms

Gets or sets the list of floating forms.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty Item[Int32]

Gets the objects to be indexed.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty Length

Gets the number of hosted applications that are being used.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty Name

Gets or sets the panel name.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty Panels

Gets or sets the list of the panels.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubproperty SelectedAppChanged

Gets or sets the event handler to handle application selection changes.(Inherited from DesktopApplicationUIBase.)

Methods

Name Description
System_CAPS_pubmethod AddApplication(String, Object, String, Boolean)

Adds a hosted application or any Windows Forms control to a panel. (Overrides DesktopApplicationUIBase.AddApplication(String, Object, String, Boolean).)

System_CAPS_pubmethod AddPanel(IPanel)

Adds an IPanel to the list of known panels which may be hosting applications.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubmethod CreateFloatingPanel<TIcon>(Boolean, Boolean, String, Object, TIcon, String, Boolean)

Creates a new floating WpfPanel for hosting controls or applications.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubmethod CreateFloatingPanel<TIcon>(Boolean, Boolean, String, Object, TIcon, String, Boolean)

Creates a new floating pfPanel for hosting controls or applications.(Overrides DesktopApplicationUIBase.CreateFloatingPanel<TIcon>(Boolean, Boolean, String, Object, TIcon, String, Boolean).)

System_CAPS_pubmethodSystem_CAPS_static EnableApplicationClose(Window, Boolean)

Added here by necessity --&amp;gt; should be in Win32Api or other helper class not sure if this working for WPF...

System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetEnumerator()

Iterates through the applications.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetSelectedApplication()

Gets the selected application regardless of how its hosted.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod NextPanel()

Gets the panel after the one which has the current focus in the interface. (Overrides DesktopApplicationUIBase.NextPanel().)

System_CAPS_pubmethod RemoveApplication(Object)

Removes the passed in application from the UI, regardless of which panel it is in.(Overrides DesktopApplicationUIBase.RemoveApplication(Object).)

System_CAPS_pubmethod RemovePanel(IPanel)

Removes an IPanel from the list of known panels.(Inherited from DesktopApplicationUIBase.)

System_CAPS_pubmethod SelectApplication(Guid)

Selects the UI panel and control which is hosting the given application.(Overrides DesktopApplicationUIBase.SelectApplication(Guid).)

System_CAPS_pubmethod SetRedraw(Boolean)

Enables/Disables redrawing of the hosted application panels to make the UI look cleaner when redrawing many items.(Overrides DesktopApplicationUIBase.SetRedraw(Boolean).)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Fields

Name Description
System_CAPS_protfieldSystem_CAPS_static OpaquenessLevel

Specifies the level of opaqueness to use when a panel is not active.

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.

See Also

Microsoft.Uii.Desktop.UI.Controls.Wpf Namespace

Return to top

Unified Service Desk 2.0

© 2017 Microsoft. All rights reserved. Copyright