Udostępnij za pośrednictwem


IPeekResultPresentation Interface

Definition

Defines WPF visual representation of an IPeekResult.

public interface class IPeekResultPresentation : IDisposable
public interface IPeekResultPresentation : IDisposable
type IPeekResultPresentation = interface
    interface IDisposable
Public Interface IPeekResultPresentation
Implements IDisposable
Implements

Remarks

A visual representation of an IDocumentPeekResult for example is a WPF control of the IWpfTextViewHost containing an ITextView with an open document.

Properties

IsDirty

Gets a value indicating whether or not this presentation is dirty.

IsReadOnly

Gets a value indicating whether or not this presentation is read-only.

ZoomLevel

The ZoomLevel factor associated with the presentation.

Methods

CanSave(String)

Can this presentation be saved?

CaptureScrollState()

Captures any information about the result prior to navigating to another frame (by using the peek navigation history or doing a recursive peek).

Close()

Closes the represenation of the Peek result.

Create(IPeekSession, IPeekResultScrollState)

Creates WPF visual representation of the Peek result.

ScrollIntoView(IPeekResultScrollState)

Scrolls open representation of the Peek result into view.

SetKeyboardFocus()

Sets keyboard focus to the open representation of the Peek result.

TryOpen(IPeekResult)

Tries to open another IPeekResult while keeping the same presentation. For example document result presentation might check if otherResult represents a result in the same document and would reuse already open document.

TryPrepareToClose()

Prepare to close the presentation.

TrySave(Boolean)

Save the current version of this presentation.

Events

IsDirtyChanged

Raised when IsDirty changes.

IsReadOnlyChanged

Raised when IsReadOnly changes.

RecreateContent

Raised when the content of the presentation needs to be recreated.

Applies to