IPeekResultPresenter Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines IPeekResult presenter, which can create WPF visual representation of a Peek result.
public interface class IPeekResultPresenter
public interface class IPeekResultPresenter
__interface IPeekResultPresenter
public interface IPeekResultPresenter
type IPeekResultPresenter = interface
Public Interface IPeekResultPresenter
Remarks
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.
Methods
TryCreatePeekResultPresentation(IPeekResult) |
Creates IPeekResultPresentation instance for the given IPeekResult. |