次の方法で共有


IPeekResultPresenter Interface

Definition

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.

Applies to