Skip to end of metadata
Go to start of metadata

Represents a control for viewing flow content, with built-in support for multiple viewing modes.

Definition

public class UXFlowDocumentViewer : FlowDocumentViewerBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

UXFlowDocumentViewer Constructor() Initializes a new instance of UXFlowDocumentViewer class.

Public Properties

TotalPages Gets or sets the total pages of the current document.
ViewingMode Gets or sets a value that indicates the current viewing mode.
ZoomMode Gets or sets a value that determines the current zoom mode.

Protected Properties

Product Product Info.

Fields

CurrentPageProperty Identifies the CurrentPage dependency property.
TotalPagesProperty Identifies the TotalPages dependency property.
ViewingModeProperty Identifies the ViewingMode dependency property.
ZoomModeProperty Identifies the ZoomMode dependency property.

Public Methods

AttachEventHandlers() Attach built-in event handlers to control templates. Call this method if necessary.
DetachedEventHandlers() Detach built-in event handlers from control templates. Call this method if necessary.
InitializeTemplates() Initializes control templates.
InvalidateLayout() Invalidate the layout of current document.
OnApplyTemplate() Builds the visual tree for the UXFlowDocumentViewer when a new template is applied.

Public Constructors

public UXFlowDocumentViewer()

Initializes a new instance of UXFlowDocumentViewer class.

Public Properties

public int TotalPages { get; set; }

Gets or sets the total pages of the current document.

public FlowDocumentViewingMode ViewingMode { get; set; }

Gets or sets a value that indicates the current viewing mode.

public ZoomMode ZoomMode { get; set; }

Gets or sets a value that determines the current zoom mode.

Protected Properties

protected ProductInfo Product { get; }

Product Info.

Fields

public static readonly DependencyProperty CurrentPageProperty

Identifies the CurrentPage dependency property.

public static readonly DependencyProperty TotalPagesProperty

Identifies the TotalPages dependency property.

public static readonly DependencyProperty ViewingModeProperty

Identifies the ViewingMode dependency property.

public static readonly DependencyProperty ZoomModeProperty

Identifies the ZoomMode dependency property.

Public Methods

public void AttachEventHandlers()

Attach built-in event handlers to control templates. Call this method if necessary.

public void DetachedEventHandlers()

Detach built-in event handlers from control templates. Call this method if necessary.

public void InitializeTemplates()

Initializes control templates.

public void InvalidateLayout()

Invalidate the layout of current document.

public void OnApplyTemplate()

Builds the visual tree for the UXFlowDocumentViewer when a new template is applied.

  • No labels