Share via


ViewAddInBase.CreateViewControl Method ()

 

Applies To: System Center 2016 - Virtual Machine Manager

Called by the add-in framework to get the view control used by the console for this add-in.

Namespace:   Microsoft.SystemCenter.VirtualMachineManager.UIAddIns
Assembly:  Microsoft.SystemCenter.VirtualMachineManager.UIAddIns (in Microsoft.SystemCenter.VirtualMachineManager.UIAddIns.dll)

Syntax

public abstract FrameworkElement CreateViewControl()
public:
virtual FrameworkElement^ CreateViewControl() abstract
abstract CreateViewControl : unit -> FrameworkElement
Public MustOverride Function CreateViewControl As FrameworkElement

Return Value

Type: System.Windows.FrameworkElement

Type: FrameworkElement

The Windows Presentation Foundation control that will be used by the console.

Remarks

This method is called by the add-in framework only once. You must override this method and return your view control to be used by the console. The control instance that you return will be used for the entire session of the console, and with every appropriate context type.

See Also

ViewAddInBase Class
Microsoft.SystemCenter.VirtualMachineManager.UIAddIns Namespace

Return to top