IPeekResultPresenter Interface

Visual Studio 2015
 

Defines IPeekResult presenter, which can create WPF visual representation of a Peek result.

Namespace:   Microsoft.VisualStudio.Language.Intellisense
Assembly:  Microsoft.VisualStudio.Language.Intellisense (in Microsoft.VisualStudio.Language.Intellisense.dll)

public interface IPeekResultPresenter

NameDescription
System_CAPS_pubmethodTryCreatePeekResultPresentation(IPeekResult)

Creates IPeekResultPresentation instance for the given IPeekResult.

Each specific IPeekResult implementation needs an IPeekResultPresenter that can create a visual representation of the result to be shown inside the Peek control. The Peek service exports default IPeekResultPresenters for known IPeekResult implementations such as IDocumentPeekResult and IExternallyBrowsablePeekResult. When a content type specific Peek provider provides a custom IPeekResult implementation it should also export an IPeekResultPresenter that can create its visual representation. It is also possible to override existing IPeekResultPresenter using the Order attribute.

This is a MEF component part, and should be exported with the following attributes:

[Export(typeof(IPeekResultPresenter))]
 [Name("presenter name")]
 [Order()]

Name attribute is required and Order attribute is optional.

Return to top
Show: