Show / Hide Table of Contents

Class ViewerViewModel

Inheritance
System.Object
ViewModelBase
ViewerViewModel
Implements
INavigable
IDisposable
Inherited Members
ViewModelBase.PropertyChanged
ViewModelBase.Set<T>(T, T, String)
ViewModelBase.RaisePropertyChanged(String)
ViewModelBase.GoBack()
Namespace: pdftron.PDF.Tools.Controls.ViewModels.Viewer
Assembly: pdftron.PDF.Tools.dll
Syntax
public class ViewerViewModel : ViewModelBase, INavigable, IDisposable

Constructors

ViewerViewModel(NewDocumentProperties, AnnotationToolbarViewModel)

Declaration
public ViewerViewModel(NewDocumentProperties properties = null, AnnotationToolbarViewModel viewModel = null)
Parameters
Type Name Description
NewDocumentProperties properties
AnnotationToolbarViewModel viewModel

Fields

_contentDialog

Declaration
protected static readonly ContentDialog _contentDialog
Field Value
Type Description
Windows.UI.Xaml.Controls.ContentDialog

_propertiesToActivate

Declaration
protected NewDocumentProperties _propertiesToActivate
Field Value
Type Description
NewDocumentProperties

_suppressRecentListUpdate

Declaration
protected bool _suppressRecentListUpdate
Field Value
Type Description
System.Boolean

FileTypeNameDictionary

Declaration
public static Dictionary<OpenedDocumentFileTypes, string> FileTypeNameDictionary
Field Value
Type Description
Dictionary<OpenedDocumentFileTypes, System.String>

Properties

AnnotationToolbar

Declaration
public AnnotationCommandBar AnnotationToolbar { get; set; }
Property Value
Type Description
AnnotationCommandBar

AnnotationToolbarViewModel

Declaration
public AnnotationToolbarViewModel AnnotationToolbarViewModel { get; set; }
Property Value
Type Description
AnnotationToolbarViewModel

AreAudioButtonsVisible

Declaration
public bool AreAudioButtonsVisible { get; set; }
Property Value
Type Description
System.Boolean

AreZoombuttonsVisible

Declaration
public bool AreZoombuttonsVisible { get; }
Property Value
Type Description
System.Boolean

CanSaveDocument

Tells when the selected document can be saved

Declaration
public bool CanSaveDocument { get; }
Property Value
Type Description
System.Boolean

CanSaveToSamefile

Declaration
public bool CanSaveToSamefile { get; }
Property Value
Type Description
System.Boolean

CloseSearchCommand

Declaration
public RelayCommand CloseSearchCommand { get; }
Property Value
Type Description
RelayCommand

CropPopupViewModel

Declaration
public CropPopupViewModel CropPopupViewModel { get; set; }
Property Value
Type Description
CropPopupViewModel

CropView

Declaration
public CropView CropView { get; set; }
Property Value
Type Description
CropView

CurrentDocumentFileType

Declaration
public OpenedDocumentFileTypes CurrentDocumentFileType { get; set; }
Property Value
Type Description
OpenedDocumentFileTypes

CurrentDocumentState

Declaration
public OpenedDocumentStates CurrentDocumentState { get; set; }
Property Value
Type Description
OpenedDocumentStates

CurrentPagePresentationModeFontSize

Declaration
public double CurrentPagePresentationModeFontSize { get; }
Property Value
Type Description
System.Double

CurrentPagePresentationModeSymbol

Declaration
public string CurrentPagePresentationModeSymbol { get; }
Property Value
Type Description
System.String

CurrentPagePresentationModeSymbolMargin

Declaration
public Thickness CurrentPagePresentationModeSymbolMargin { get; }
Property Value
Type Description
Windows.UI.Xaml.Thickness

CurrentSaveAsOption

Declaration
public SaveAsOption CurrentSaveAsOption { get; set; }
Property Value
Type Description
SaveAsOption

CustomColorViewModel

Declaration
public CustomColorViewModel CustomColorViewModel { get; set; }
Property Value
Type Description
CustomColorViewModel

DismissDialogCommand

Declaration
public RelayCommand DismissDialogCommand { get; }
Property Value
Type Description
RelayCommand

DocumentOpener

Declaration
public DocumentOpener DocumentOpener { get; set; }
Property Value
Type Description
DocumentOpener

EditCommand

Declaration
public RelayCommand EditCommand { get; }
Property Value
Type Description
RelayCommand

ExportXFDFCommand

Declaration
public RelayCommand ExportXFDFCommand { get; }
Property Value
Type Description
RelayCommand

FindTextViewModel

Declaration
public FindTextViewModel FindTextViewModel { get; set; }
Property Value
Type Description
FindTextViewModel

FullScreenExitCommand

Declaration
public RelayCommand FullScreenExitCommand { get; }
Property Value
Type Description
RelayCommand

HandleSystemBackButton

Whether or not the ViewerControl should handle the BackButton event from Windows.UI.Core.SystemNavigationManager.GetForCurrentView

Declaration
public bool HandleSystemBackButton { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default state: False - expect to be handled externally by the application

HandleViewerBackButton

Whether or not the ViewerControl should handle the Viewer/Command bar BackButton event

Declaration
public bool HandleViewerBackButton { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Default state: True - expect to be handled internally by the ViewerControl

HasDocumentBeenModifiedSinceOpening

Declaration
public bool HasDocumentBeenModifiedSinceOpening { get; set; }
Property Value
Type Description
System.Boolean

InitializeOnCreation

Declaration
public bool InitializeOnCreation { get; set; }
Property Value
Type Description
System.Boolean

IsActionsButtonVisible

Change the visibility of the Actions button in the viewer

Declaration
public bool IsActionsButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsActionsEnabled

Enable or disable the Actions button in the viewer

Declaration
public bool IsActionsEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsAddTabButtonEnabled

Enable or disable the Add tab button "+" next to last tab

Declaration
public bool IsAddTabButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsAllowDropEnabled

Declaration
public bool IsAllowDropEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsAnnotationToolbarOpen

Declaration
public bool IsAnnotationToolbarOpen { get; set; }
Property Value
Type Description
System.Boolean

IsAppBarAvailable

Declaration
public bool IsAppBarAvailable { get; set; }
Property Value
Type Description
System.Boolean

IsAppBarOpen

Controls whether the App Bar is in a expanded or compact state

Declaration
public bool IsAppBarOpen { get; set; }
Property Value
Type Description
System.Boolean

IsAudioControlVisible

Used to show or hide the Audio Control used to record/play audios for the sound annotation

Declaration
public bool IsAudioControlVisible { get; set; }
Property Value
Type Description
System.Boolean

IsAudioPlaying

Checks whether the audio control is currenctly playing an audio

Declaration
public bool IsAudioPlaying { get; set; }
Property Value
Type Description
System.Boolean

IsCloseTabButtonEnabled

Enable or disable the Close tab button "X" within active tabs

Declaration
public bool IsCloseTabButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsConverting

Declaration
public bool IsConverting { get; }
Property Value
Type Description
System.Boolean

IsCropViewOpen

Declaration
public bool IsCropViewOpen { get; set; }
Property Value
Type Description
System.Boolean

IsCropViewVisible

Change the visibility of the buttons to open the Crop View

Declaration
public bool IsCropViewVisible { get; set; }
Property Value
Type Description
System.Boolean

IsDeactivationOnBackNavigationEnabled

Ensure to deactivate all opened tabs when navigating away from the page that hosts the ViewerControl

Declaration
public bool IsDeactivationOnBackNavigationEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsDismissableDialogOpen

Declaration
public bool IsDismissableDialogOpen { get; set; }
Property Value
Type Description
System.Boolean

IsDocumentEditable

Declaration
public bool IsDocumentEditable { get; set; }
Property Value
Type Description
System.Boolean

IsDocumentModifiedSinceLastSave

Whether or the current selected document has changes since last time it got saved

Declaration
public bool IsDocumentModifiedSinceLastSave { get; set; }
Property Value
Type Description
System.Boolean

IsDocumentSearchable

Declaration
public bool IsDocumentSearchable { get; }
Property Value
Type Description
System.Boolean

IsEditButtonEnabled

Choose whether or not the Edit (annotation toolbar) is enabled or disabled

Declaration
public bool IsEditButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsEditButtonVisible

Choose whether or not the Edit button is Visible or Collapsed

Declaration
public bool IsEditButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsEntireAppBarOpen

Controls whether the App Bar is visible on the screen or not

Declaration
public bool IsEntireAppBarOpen { get; set; }
Property Value
Type Description
System.Boolean

IsExportVisible

Change the visibility of the Export button in the secondary menu of the viewer

Declaration
public bool IsExportVisible { get; set; }
Property Value
Type Description
System.Boolean

IsExportXFDFVisible

Change the visibility of the Export XFDF button in the viewer

Declaration
public bool IsExportXFDFVisible { get; set; }
Property Value
Type Description
System.Boolean

IsExternalSaveEnabled

Enable or Disable the ViewerControl to allow the handling of Save and Save As to be external

Declaration
public bool IsExternalSaveEnabled { get; set; }
Property Value
Type Description
System.Boolean
Remarks

For external handling use the events SaveRequested and SaveAsRequested

IsFindTextDialogOpen

Declaration
public bool IsFindTextDialogOpen { get; set; }
Property Value
Type Description
System.Boolean

IsForceGoBackAllowed

When enabled it will force the ViewerControl to navigate back to the previous Frame page listening to the SystemNavigationManager.GetForCurrentView().BackRequested event

Declaration
public bool IsForceGoBackAllowed { get; set; }
Property Value
Type Description
System.Boolean
Remarks

It will ignore any unsaved changes to the opened documents and just navigate away/back in the Frame navigation stack

IsFullScreen

Declaration
public bool IsFullScreen { get; }
Property Value
Type Description
System.Boolean

IsModal

Declaration
public bool IsModal { get; set; }
Property Value
Type Description
System.Boolean

IsModalGrayout

When true, the modal dialog grays out the Viewer

Declaration
public bool IsModalGrayout { get; set; }
Property Value
Type Description
System.Boolean

IsMultiWindowActive

Choose wheather or not the Multi Window on the viewer is Active

Declaration
public bool IsMultiWindowActive { get; set; }
Property Value
Type Description
System.Boolean

IsMultiWindowEnabled

Choose wheather or not the Multi Window is enabled or disabled

Declaration
public bool IsMultiWindowEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsMultiWindowVisible

Choose wheather or not the Multi Window is Visible or Collapsed

Declaration
public bool IsMultiWindowVisible { get; set; }
Property Value
Type Description
System.Boolean

IsOutlineButtonEnabled

Choose whether or not the Outline button is enabled or disabled

Declaration
public bool IsOutlineButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsOutlineButtonVisible

Choose whether or not the Outline button is Visible or Collapsed

Declaration
public bool IsOutlineButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsOutlineDialogOpen

Declaration
public bool IsOutlineDialogOpen { get; set; }
Property Value
Type Description
System.Boolean

IsOutlineEditingEnabled

Choose whether or not editing outlines is enabled

Declaration
public bool IsOutlineEditingEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsOutlineEnabled

Declaration
public bool IsOutlineEnabled { get; }
Property Value
Type Description
System.Boolean

IsPageNumberIndicatorVisible

Declaration
public bool IsPageNumberIndicatorVisible { get; }
Property Value
Type Description
System.Boolean

IsPasswordProtected

Declaration
public bool IsPasswordProtected { get; }
Property Value
Type Description
System.Boolean

IsPdfCompareActive

Choose wheather or not the PDF Compare on the viewer is Active

Declaration
public bool IsPdfCompareActive { get; set; }
Property Value
Type Description
System.Boolean

IsPdfCompareEnabled

Choose wheather or not the PDF Compare is enabled or disabled

Declaration
public bool IsPdfCompareEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsPdfCompareViewOpen

Declaration
public bool IsPdfCompareViewOpen { get; set; }
Property Value
Type Description
System.Boolean

IsPdfCompareVisible

Choose wheather or not the PDF Compare is Visible or Collapsed

Declaration
public bool IsPdfCompareVisible { get; set; }
Property Value
Type Description
System.Boolean

IsPDFViewCtrlVisible

Declaration
public bool IsPDFViewCtrlVisible { get; set; }
Property Value
Type Description
System.Boolean

IsPivotItemAnnotationsEnabled

Change the visibility of the Outline flyout menu Outline button

Declaration
public bool IsPivotItemAnnotationsEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsPivotItemBookmarksEnabled

Change the visibility of the Outline flyout menu Annotations button

Declaration
public bool IsPivotItemBookmarksEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsPivotItemOutlineEnabled

Change the visibility of the Outline flyout menu Bookmarks button

Declaration
public bool IsPivotItemOutlineEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsPivotItemThumbnailsEnabled

Change the visibility of the Outline flyout menu Thumbnails button

Declaration
public bool IsPivotItemThumbnailsEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsPreparingForConversion

Declaration
public bool IsPreparingForConversion { get; }
Property Value
Type Description
System.Boolean

IsPrintVisible

Change the visibility of the Print document button in the viewer

Declaration
public bool IsPrintVisible { get; set; }
Property Value
Type Description
System.Boolean

IsQuickSettingsEnabled

Declaration
public bool IsQuickSettingsEnabled { get; }
Property Value
Type Description
System.Boolean

IsQuickSettingsOpen

Declaration
public bool IsQuickSettingsOpen { get; set; }
Property Value
Type Description
System.Boolean

IsReadOnlyModeEnabled

Choose whether Read Only Mode is enabled

Declaration
public bool IsReadOnlyModeEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsRedoEnabled

Declaration
public bool IsRedoEnabled { get; }
Property Value
Type Description
System.Boolean

IsReflow

Declaration
public bool IsReflow { get; }
Property Value
Type Description
System.Boolean

IsRightToLeftVisibile

Change the visibility of the Right to Left reading direction option

Declaration
public bool IsRightToLeftVisibile { get; set; }
Property Value
Type Description
System.Boolean

IsSaveAsButtonEnabled

Enable or disable the Save As button

Declaration
public bool IsSaveAsButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsSaveAsButtonVisible

Change the visibility of the Save As button

Declaration
public bool IsSaveAsButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsSaveButtonEnabled

Enable or disable the Save button

Declaration
public bool IsSaveButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsSaveButtonVisible

Change the visbility of the Save button

Declaration
public bool IsSaveButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsSaveTimerOpen

Declaration
public bool IsSaveTimerOpen { get; set; }
Property Value
Type Description
System.Boolean

IsSecretlyModal

This is added make the viewer modal without appearing modal. This can be used for async operations that are generally fast, but sometimes slow and require modality. Also remember to make the PDFViewCtrl not hit test visible.

Declaration
public bool IsSecretlyModal { get; set; }
Property Value
Type Description
System.Boolean

IsSeeMoreButtonEnabled

Choose whether or not the SeeMore is enabled or disabled

Declaration
public bool IsSeeMoreButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsSeeMoreButtonVisible

Choose whether or not the SeeMore button is Visible or Collapsed

Declaration
public bool IsSeeMoreButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsShareVisible

Change the visibility of the Share document button in the viewer

Declaration
public bool IsShareVisible { get; set; }
Property Value
Type Description
System.Boolean

IsSoundAnnotEnabled

Choose whether or not editing outlines is enabled

Declaration
public bool IsSoundAnnotEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsTabReorderEnabled

Choose whether or not Tab Reordering is enabled

Declaration
public bool IsTabReorderEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsTextSearchButtonEnabled

Choose whether or not the TextSearch button is enabled or disabled

Declaration
public bool IsTextSearchButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsTextSearchButtonVisible

Choose whether or not the TextSearch button is Visible or Collapsed

Declaration
public bool IsTextSearchButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

IsThumbnailSliderVisible

Declaration
public bool IsThumbnailSliderVisible { get; }
Property Value
Type Description
System.Boolean

IsThumbnailsViewOpen

Declaration
public bool IsThumbnailsViewOpen { get; set; }
Property Value
Type Description
System.Boolean

IsThumbnailViewVisible

Change the visibility of the buttons to open the ThumbnailView

Declaration
public bool IsThumbnailViewVisible { get; set; }
Property Value
Type Description
System.Boolean

IsUiPinned

Declaration
public bool IsUiPinned { get; set; }
Property Value
Type Description
System.Boolean

IsUndoEnabled

Declaration
public bool IsUndoEnabled { get; }
Property Value
Type Description
System.Boolean

IsViewModeButtonEnabled

Choose whether or not the ViewMode button is enabled or disabled

Declaration
public bool IsViewModeButtonEnabled { get; set; }
Property Value
Type Description
System.Boolean

IsViewModeButtonVisible

Choose whether or not the ViewMode button is Visible or Collapsed

Declaration
public bool IsViewModeButtonVisible { get; set; }
Property Value
Type Description
System.Boolean

KeepOpenedTabs

Choose whether the ViewerControl will keep the tabs opened

Declaration
public bool KeepOpenedTabs { get; set; }
Property Value
Type Description
System.Boolean
Remarks

Used when there is a customized navigation pages which will handle file opening

MediaElement

Declaration
public MediaElement MediaElement { get; set; }
Property Value
Type Description
Windows.UI.Xaml.Controls.MediaElement

MRUToken

Declaration
protected string MRUToken { set; }
Property Value
Type Description
System.String

MultiWindowCommand

Declaration
public RelayCommand MultiWindowCommand { get; }
Property Value
Type Description
RelayCommand

NavigablePage

Declaration
public Type NavigablePage { get; set; }
Property Value
Type Description
Type

NavigateBack

Declaration
public INavigable NavigateBack { get; set; }
Property Value
Type Description
INavigable

NavigateBackPage

Declaration
public NavigablePage NavigateBackPage { get; set; }
Property Value
Type Description
NavigablePage

OptimizeFileViewModel

Declaration
public OptimizeFileViewModel OptimizeFileViewModel { get; set; }
Property Value
Type Description
OptimizeFileViewModel

OutlineCommand

Declaration
public RelayCommand OutlineCommand { get; }
Property Value
Type Description
RelayCommand

OutlineDialogNavigationCloses

Used to Set whether navigating using the outline dialog should close it.

Declaration
public bool OutlineDialogNavigationCloses { get; set; }
Property Value
Type Description
System.Boolean

OutlineDialogViewModel

Declaration
public OutlineDialogViewModel OutlineDialogViewModel { get; set; }
Property Value
Type Description
OutlineDialogViewModel

PageEditingCommand

Declaration
public RelayCommand PageEditingCommand { get; }
Property Value
Type Description
RelayCommand

PageNumberIndicator

Declaration
public ClickablePageNumberIndicator PageNumberIndicator { get; }
Property Value
Type Description
ClickablePageNumberIndicator

PasswordFileViewModel

Declaration
public PasswordFileViewModel PasswordFileViewModel { get; set; }
Property Value
Type Description
PasswordFileViewModel

PauseAudioCommand

Declaration
public RelayCommand PauseAudioCommand { get; }
Property Value
Type Description
RelayCommand

PdfCompareCommand

Declaration
public RelayCommand PdfCompareCommand { get; }
Property Value
Type Description
RelayCommand

PdfCompareViewer

Declaration
public PdfCompareControl PdfCompareViewer { get; set; }
Property Value
Type Description
PdfCompareControl

PDFViewCtrl

Declaration
public PDFViewCtrl PDFViewCtrl { get; }
Property Value
Type Description
PDFViewCtrl

PinCommand

Declaration
public RelayCommand PinCommand { get; }
Property Value
Type Description
RelayCommand

PlayAudioCommand

Declaration
public RelayCommand PlayAudioCommand { get; }
Property Value
Type Description
RelayCommand

PrintCommand

Declaration
public RelayCommand PrintCommand { get; }
Property Value
Type Description
RelayCommand

PropertiesToActivate

Declaration
public NewDocumentProperties PropertiesToActivate { get; }
Property Value
Type Description
NewDocumentProperties

QuickSettingsClosedCommand

Declaration
public RelayCommand QuickSettingsClosedCommand { get; }
Property Value
Type Description
RelayCommand

QuickSettingsOpenedCommand

Declaration
public RelayCommand QuickSettingsOpenedCommand { get; }
Property Value
Type Description
RelayCommand

RedoCommand

Declaration
public RelayCommand RedoCommand { get; }
Property Value
Type Description
RelayCommand

ReflowView

Declaration
public ReflowView ReflowView { get; }
Property Value
Type Description
ReflowView

SaveAndFlattenCommand

Declaration
public RelayCommand SaveAndFlattenCommand { get; }
Property Value
Type Description
RelayCommand

SaveAPasswordCopyText

Declaration
public string SaveAPasswordCopyText { get; set; }
Property Value
Type Description
System.String

SaveAsCommand

Declaration
public RelayCommand SaveAsCommand { get; }
Property Value
Type Description
RelayCommand

SaveCommand

Declaration
public RelayCommand SaveCommand { get; }
Property Value
Type Description
RelayCommand

SaveCopyButton

Declaration
public AppBarTabButton SaveCopyButton { get; set; }
Property Value
Type Description
AppBarTabButton

SaveDocumentAfterClosing

Declaration
public bool SaveDocumentAfterClosing { get; set; }
Property Value
Type Description
System.Boolean

SavePasswordCopyCommand

Declaration
public RelayCommand SavePasswordCopyCommand { get; }
Property Value
Type Description
RelayCommand

SavePermCroppedCopyCommand

Declaration
public RelayCommand SavePermCroppedCopyCommand { get; }
Property Value
Type Description
RelayCommand

SaveReducedFileSizeCopyCommand

Declaration
public RelayCommand SaveReducedFileSizeCopyCommand { get; }
Property Value
Type Description
RelayCommand

SearchCommand

Declaration
public RelayCommand SearchCommand { get; }
Property Value
Type Description
RelayCommand

ShareCommand

Declaration
public RelayCommand ShareCommand { get; }
Property Value
Type Description
RelayCommand

SharingHelper

Declaration
public SharingHelper SharingHelper { get; set; }
Property Value
Type Description
SharingHelper

ShowBackButton

Declaration
public bool ShowBackButton { get; set; }
Property Value
Type Description
System.Boolean

ShowPageNumberIndicator

Declaration
public bool ShowPageNumberIndicator { get; set; }
Property Value
Type Description
System.Boolean

ShowTabFileInfo

Enable or Disable the file path popup when right clicking on a tab

Declaration
public bool ShowTabFileInfo { get; set; }
Property Value
Type Description
System.Boolean

SoundControl

Declaration
public AudioControl SoundControl { get; set; }
Property Value
Type Description
AudioControl

StopAudioCommand

Declaration
public RelayCommand StopAudioCommand { get; }
Property Value
Type Description
RelayCommand

TabControlViewModel

Declaration
public TabControlViewModel TabControlViewModel { get; }
Property Value
Type Description
TabControlViewModel

ThumbnailSlider

Declaration
public ThumbnailSlider ThumbnailSlider { get; set; }
Property Value
Type Description
ThumbnailSlider

ThumbnailViewer

Declaration
public ThumbnailViewer ThumbnailViewer { get; set; }
Property Value
Type Description
ThumbnailViewer

ToolManager

Declaration
public ToolManager ToolManager { get; }
Property Value
Type Description
ToolManager

UndoCommand

Declaration
public RelayCommand UndoCommand { get; }
Property Value
Type Description
RelayCommand

UnpinCommand

Declaration
public RelayCommand UnpinCommand { get; }
Property Value
Type Description
RelayCommand

ViewerBackButtonCommand

Declaration
public RelayCommand ViewerBackButtonCommand { get; }
Property Value
Type Description
RelayCommand

ViewerPageSettingsViewModel

Declaration
public ViewerPageSettingsViewModel ViewerPageSettingsViewModel { get; set; }
Property Value
Type Description
ViewerPageSettingsViewModel

ZoomCommand

Declaration
public RelayCommand ZoomCommand { get; }
Property Value
Type Description
RelayCommand

Methods

Activate(Object)

Declaration
public void Activate(object parameter)
Parameters
Type Name Description
System.Object parameter

ActivateTabImpl(PdfViewCtrlTabInfo)

Declaration
protected virtual void ActivateTabImpl(PdfViewCtrlTabInfo tab = null)
Parameters
Type Name Description
PdfViewCtrlTabInfo tab

ActivateWithFileAsync(StorageFile, NewDocumentProperties)

Use this to activate the current view with a file.

Declaration
public Task ActivateWithFileAsync(StorageFile file, NewDocumentProperties properties)
Parameters
Type Name Description
Windows.Storage.StorageFile file

The file to open

NewDocumentProperties properties
Returns
Type Description
Task
Remarks

Supported file types: .pdf, .doc, .docx, .ppt, .pptx, .xls, .xlsx, .oxps, .xps, .jpeg, .jpg, .png, .bmp, .cbz

ActivateWithFileImplAsync(StorageFile, NewDocumentProperties)

Declaration
protected virtual Task ActivateWithFileImplAsync(StorageFile file, NewDocumentProperties properties)
Parameters
Type Name Description
Windows.Storage.StorageFile file
NewDocumentProperties properties
Returns
Type Description
Task

BrowseAsync()

Declaration
protected Task BrowseAsync()
Returns
Type Description
Task

CloseTabRequestedAsync(SaveNeededStates, PdfViewCtrlTabInfo, Boolean)

Declaration
public Task CloseTabRequestedAsync(SaveNeededStates saveNeededStatus, PdfViewCtrlTabInfo tabToClose, bool navigateWhenDone)
Parameters
Type Name Description
SaveNeededStates saveNeededStatus
PdfViewCtrlTabInfo tabToClose
System.Boolean navigateWhenDone
Returns
Type Description
Task

ContinueSavingAsync(StorageFile, PdfViewCtrlTabInfo, Boolean, Boolean, SaveAsOption, Boolean)

Declaration
public Task ContinueSavingAsync(StorageFile file, PdfViewCtrlTabInfo tab, bool closeIfsuccessful, bool navigateIfSucessful, SaveAsOption option, bool destinationIsTempFile = false)
Parameters
Type Name Description
Windows.Storage.StorageFile file
PdfViewCtrlTabInfo tab
System.Boolean closeIfsuccessful
System.Boolean navigateIfSucessful
SaveAsOption option
System.Boolean destinationIsTempFile
Returns
Type Description
Task

Deactivate(Object)

Declaration
public void Deactivate(object parameter)
Parameters
Type Name Description
System.Object parameter

Dispose()

Declaration
public void Dispose()

DragOver(Object, DragEventArgs)

Declaration
public void DragOver(object sender, DragEventArgs e)
Parameters
Type Name Description
System.Object sender
Windows.UI.Xaml.DragEventArgs e

Drop(Object, DragEventArgs)

Declaration
public void Drop(object sender, DragEventArgs e)
Parameters
Type Name Description
System.Object sender
Windows.UI.Xaml.DragEventArgs e

GetSubscribed()

Declaration
public virtual bool GetSubscribed()
Returns
Type Description
System.Boolean

NotifyCreatedDocumentAsync()

Declaration
public Task NotifyCreatedDocumentAsync()
Returns
Type Description
Task

NotifyReadOnlyDocumentAsync()

Declaration
public Task NotifyReadOnlyDocumentAsync()
Returns
Type Description
Task

NotyfyReparablePdfDocAsync()

Declaration
public Task NotyfyReparablePdfDocAsync()
Returns
Type Description
Task

OpenTextSearchAsync()

Declaration
public Task OpenTextSearchAsync()
Returns
Type Description
Task

PauseAutoSaving()

Declaration
public void PauseAutoSaving()

RaiseViewModelPropertyChanged(String)

Declaration
public void RaiseViewModelPropertyChanged(string name)
Parameters
Type Name Description
System.String name

ResolveAutoSaverAndSaveButton()

Declaration
public void ResolveAutoSaverAndSaveButton()

ResumeAutoSaving()

Declaration
public void ResumeAutoSaving()

SaveAsAsync(PdfViewCtrlTabInfo, Boolean, Boolean, SaveAsOption)

Declaration
public Task SaveAsAsync(PdfViewCtrlTabInfo tab, bool closeIfsuccessful, bool navigateIfSucessful, SaveAsOption option)
Parameters
Type Name Description
PdfViewCtrlTabInfo tab
System.Boolean closeIfsuccessful
System.Boolean navigateIfSucessful
SaveAsOption option
Returns
Type Description
Task

SaveHelperAsync()

Declaration
public Task SaveHelperAsync()
Returns
Type Description
Task

SaveHelperAsync(PdfViewCtrlTabInfo, Boolean, Boolean)

It starts the saving process on the selected document/tab

Declaration
public Task SaveHelperAsync(PdfViewCtrlTabInfo tab, bool includeFullSave = false, bool alwaysSave = false)
Parameters
Type Name Description
PdfViewCtrlTabInfo tab
System.Boolean includeFullSave
System.Boolean alwaysSave

Means that we want to save to the original file, not just to the temporary one

Returns
Type Description
Task

SaveImplAsync()

Declaration
public Task SaveImplAsync()
Returns
Type Description
Task

UpdateUIVisiblity()

Declaration
public void UpdateUIVisiblity()

Events

BelongInRecentList

Declaration
public event ViewerViewModel.BelongInRecentListDelegate BelongInRecentList
Event Type
Type Description
ViewerViewModel.BelongInRecentListDelegate

DocumentCreationFailed

Raised when a document creation attempt fails

Declaration
public event CreateDocControlViewModel.DocumentCreationFailedDelegate DocumentCreationFailed
Event Type
Type Description
CreateDocControlViewModel.DocumentCreationFailedDelegate

DocumentModified

Raised when a document has been modified

Declaration
public event ViewerViewModel.DocumentModifiedHandler DocumentModified
Event Type
Type Description
ViewerViewModel.DocumentModifiedHandler
Remarks

Types of modification: Annotation added, removed, or edited

FindTextResultFound

Declaration
public event FindTextViewModel.FindTextResultFoundDelegate FindTextResultFound
Event Type
Type Description
FindTextViewModel.FindTextResultFoundDelegate

GoBackRequested

Declaration
public event ViewerViewModel.GoBackRequestedHandler GoBackRequested
Event Type
Type Description
ViewerViewModel.GoBackRequestedHandler

ImageLoaded

Raised when an image has been loaded in the document creation dialog

Declaration
public event CreateDocControlViewModel.ImageLoadedDelegate ImageLoaded
Event Type
Type Description
CreateDocControlViewModel.ImageLoadedDelegate

ImageLoadingFailed

Raised when an image failed to during loading in the document creation dialog

Declaration
public event CreateDocControlViewModel.ImageLoadingFailedDelegate ImageLoadingFailed
Event Type
Type Description
CreateDocControlViewModel.ImageLoadingFailedDelegate

NewDocumentCreated

Raised when a document is successfully created

Declaration
public event CreateDocControlViewModel.NewDocumentCreatedDelegate NewDocumentCreated
Event Type
Type Description
CreateDocControlViewModel.NewDocumentCreatedDelegate

NewINavigableAvailable

Declaration
public event NewINavigableAvailableDelegate NewINavigableAvailable
Event Type
Type Description
NewINavigableAvailableDelegate

OnSoundAnnotRequested

Event is raised when user selects sound annotation (Mic) on the Context Menu

Declaration
public event ToolManager.SoundAnnotCreateHandler OnSoundAnnotRequested
Event Type
Type Description
ToolManager.SoundAnnotCreateHandler

OpenSearch

Declaration
public event EventHandler<Deferral> OpenSearch
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.Foundation.Deferral>

PageNumberChanged

Declaration
public event ViewerViewModel.PageNumberChangedDelegate PageNumberChanged
Event Type
Type Description
ViewerViewModel.PageNumberChangedDelegate

PDFCompareState

Notify when the internal PDFCompare control has changed state Opened/Closed

Declaration
public event ViewerViewModel.InternalControlStateDelegate PDFCompareState
Event Type
Type Description
ViewerViewModel.InternalControlStateDelegate

SaveAsRequested

Declaration
public event ViewerViewModel.SaveAsRequestedHandler SaveAsRequested
Event Type
Type Description
ViewerViewModel.SaveAsRequestedHandler

SaveRequested

Raised when the save document action has been requested

Declaration
public event ViewerViewModel.SaveRequestedHandler SaveRequested
Event Type
Type Description
ViewerViewModel.SaveRequestedHandler

ViewerActivate

Declaration
public event EventHandler<Deferral> ViewerActivate
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.Foundation.Deferral>

ViewerActivateWithFile

Declaration
public event EventHandler<Deferral> ViewerActivateWithFile
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.Foundation.Deferral>

ViewerDeactivate

Declaration
public event EventHandler<Deferral> ViewerDeactivate
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.Foundation.Deferral>

ViewerDragOver

Declaration
public event EventHandler<DragEventArgs> ViewerDragOver
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.DragEventArgs>

ViewerDrop

Declaration
public event EventHandler<DragEventArgs> ViewerDrop
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.DragEventArgs>

Implements

INavigable
IDisposable
In This Article
Back to top Generated by DocFX