ViewAddInBase.CreateViewControl Method ()

System Center
 

Updated: June 20, 2017

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)

public abstract FrameworkElement CreateViewControl()

Return Value

Type: System.Windows.FrameworkElement

Type: FrameworkElement

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

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.

Return to top
Show: