IPeekResultPresentation 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 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 |
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. |