CreateTextViewHostCallback Delegate
Visual Studio 2015
Callback used with T:Microsoft.VIsualStudio.Text.Differencing.IWpfDifferenceViewerFactoryService to create a text view host.
Assembly: Microsoft.VisualStudio.Text.UI.Wpf (in Microsoft.VisualStudio.Text.UI.Wpf.dll)
Use the following parameters:
textViewModel: The text view model to use in creating the text view.
roles: The roles specific to this view.
options:The options to use in creating the text view.
visualElement: The top-level visual element for this host.
textViewHost: The created text view host.
To get standard text view roles, the implementation of this method should concatenate the given roleswith=DefaultRoles. In most cases the visual element can just be the textViewHost’s P:Microsoft.VisualStudio.Text.Editor.IWpfTextViewHost.HostControl.
Show: