Interface IVsUIActions
Definition of the user interface actions that are supported in visual studio.
Namespace: CodeFactory.VisualStudio.UI
Assembly: CodeFactory.VisualStudio.dll
Syntax
public interface IVsUIActions
  Methods
| Improve this Doc View SourceCreateVsUserControlAsync<T>()
Creates a new instance of a visual studio user control supported by code factory. This will load the IVsActions into the control as well as the logger that supports the user control.
Declaration
Task<T> CreateVsUserControlAsync<T>() where T : VsUserControl
  Returns
| Type | Description | 
|---|---|
| Task<T> | New instance of the target user control.  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The type of visual studio user control to create.  | 
      
Exceptions
| Type | Condition | 
|---|---|
| VisualStudioException | Raises a visual studio error if there was a problem creating the user control. Review the internal exception for the source of the error.  | 
      
ShowDialogWindowAsync(VsUserControl)
Displays a dialog window in visual studio that hosts a user control that implements VsUserControl. This makes sure the dialog window is thread safe to be used with visual studio.
Declaration
Task<bool?> ShowDialogWindowAsync(VsUserControl userControl)
  Parameters
| Type | Name | Description | 
|---|---|---|
| VsUserControl | userControl | The instance of the user control that is to be hosted in the dialog window.  | 
      
Returns
| Type | Description | 
|---|---|
| Task<bool?> | Returns the result for the window which returns a true if a close event occurred, a false when a cancel event occurred, or null if neither were triggered.  |