IWpfTextViewCreationListener IWpfTextViewCreationListener IWpfTextViewCreationListener Interface

Definition

Listens to text view created events.

public interface IWpfTextViewCreationListener
type IWpfTextViewCreationListener = interface
Public Interface IWpfTextViewCreationListener

Examples

For an example of how to use this interface, see Walkthrough: Customizing the Text View.

Remarks

Exporters must specify at least one ContentTypeAttribute and one TextViewRoleAttribute, and should mark their export using the following attribute:

[Export(typeof(IWpfTextViewCreationListener))]  
[ContentType(....)]   
[TextViewRole(....)]  

Use this interface instead of IWpfTextViewConnectionListener if your extension does not depend on the content type of the text view. This is because SubjectBuffersConnected is called when the content type of an existing buffer is changed to the appropriate content type (as well as when it is connected to the view), while TextViewCreated is called only at the creation of a text view.

Methods

TextViewCreated(IWpfTextView) TextViewCreated(IWpfTextView) TextViewCreated(IWpfTextView)

Called when a text view having matching roles is created over a text data model having a matching content type.

Applies to