Show / Hide Table of Contents

Class PdfViewCtrlTabInfo

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

Constructors

PdfViewCtrlTabInfo(StorageFile, StorageFile, PDFDoc, String)

Declaration
public PdfViewCtrlTabInfo(StorageFile orig, StorageFile tmp, PDFDoc doc, string title)
Parameters
Type Name Description
Windows.Storage.StorageFile orig
Windows.Storage.StorageFile tmp
PDFDoc doc
System.String title

PdfViewCtrlTabInfo(StorageFile, StorageFile, PdfViewCtrlTabMetaData)

Helper method to restore opened tabs

Declaration
public PdfViewCtrlTabInfo(StorageFile orig, StorageFile tmp, PdfViewCtrlTabMetaData restoredData)
Parameters
Type Name Description
Windows.Storage.StorageFile orig

Original File

Windows.Storage.StorageFile tmp

Temperory File

PdfViewCtrlTabMetaData restoredData

Properties

CanBeSaved

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

DisposeWhenSaved

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

Doc

It holds a reference to the current opened PDFDoc, which is related to a temporary StorageFile

Declaration
public PDFDoc Doc { get; set; }
Property Value
Type Description
PDFDoc

DocSavingSemaphore

Declaration
public SemaphoreSlim DocSavingSemaphore { get; }
Property Value
Type Description
SemaphoreSlim

DocumentState

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

FileLoadingError

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

FileSourceIfNotSaveable

Declaration
public StorageFile FileSourceIfNotSaveable { get; set; }
Property Value
Type Description
Windows.Storage.StorageFile

First

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

HasDocumentBeenModifiedSinceOpening

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

HasUserBeenWarnedAboutSaving

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

IsCloseTabButtonEnabled

Choose whether or not the close button within tabs are enabled or disabled

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

IsCloseTabButtonVisible

Choose whether or not the close button within tabs are Visible or Collapsed

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

IsConverting

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

IsDocumentModifiedSinceLastSave

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

IsReflow

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

IsRightToLeftEnabled

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

IsSelected

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

IsUpToDate

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

IsWaitingForConversionToStart

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

Last

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

MetaData

Declaration
public PdfViewCtrlTabMetaData MetaData { get; set; }
Property Value
Type Description
PdfViewCtrlTabMetaData

NavigationStack

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

OriginalFile

The original file opened by the user

Declaration
public StorageFile OriginalFile { get; set; }
Property Value
Type Description
Windows.Storage.StorageFile
Remarks

Changes to this file will be transfered from the TempFile on AutoSave or Manual Save is issued

OutlineDialogViewModel

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

ParentViewModel

Declaration
public ViewModelBase ParentViewModel { get; set; }
Property Value
Type Description
ViewModelBase

PdfReady

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

PDFViewCtrl

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

PreviewSource

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

ReflowCurrentPage

Declaration
public int ReflowCurrentPage { get; set; }
Property Value
Type Description
System.Int32

ReflowView

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

ShowConversionProgress

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

ShowHasUnsavedChanged

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

ShowIfDocumentModified

If false, auto-saving is implied

Declaration
public ShowIfModifiedStates ShowIfDocumentModified { get; set; }
Property Value
Type Description
ShowIfModifiedStates

ShowPreview

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

StreamForConversion

Declaration
public IRandomAccessStream StreamForConversion { get; set; }
Property Value
Type Description
Windows.Storage.Streams.IRandomAccessStream

SystemFileSize

Declaration
public ulong SystemFileSize { get; set; }
Property Value
Type Description
System.UInt64

SystemLastModifiedDate

Declaration
public DateTimeOffset SystemLastModifiedDate { get; set; }
Property Value
Type Description
DateTimeOffset

TempFile

The temporary file created in the app's temp folder to be used for Viewing/Editing by the user

Declaration
public StorageFile TempFile { get; set; }
Property Value
Type Description
Windows.Storage.StorageFile
Remarks

All changes made to the temporary file will be transfered to the OriginalFile once Save (Manual) or AutoSave is performed

ThumbnailFallback

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

ThumbnailFolder

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

Title

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

ToolManager

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

UpdatingFile

True if the original file is out of date and we have to load a new file

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

Methods

ActivateAsync()

Declaration
public Task ActivateAsync()
Returns
Type Description
Task

CleanUp()

Declaration
public void CleanUp()

CloseOutline()

Declaration
public void CloseOutline()

CloseOutlineAsync()

Declaration
public Task CloseOutlineAsync()
Returns
Type Description
Task

CreateUniversalTabInfo(PdfViewCtrlTabMetaData, StorageFile)

Declaration
public static PdfViewCtrlTabInfo CreateUniversalTabInfo(PdfViewCtrlTabMetaData restoredData, StorageFile sourceFile)
Parameters
Type Name Description
PdfViewCtrlTabMetaData restoredData
Windows.Storage.StorageFile sourceFile
Returns
Type Description
PdfViewCtrlTabInfo

Deactivate()

Declaration
public void Deactivate()

DocSemRelease(String, Int32)

Declaration
public void DocSemRelease(string member = "", int line = 0)
Parameters
Type Name Description
System.String member
System.Int32 line

DocSemWait(String, Int32)

Declaration
public void DocSemWait(string member = "", int line = 0)
Parameters
Type Name Description
System.String member
System.Int32 line

DocSemWaitAsync(String, Int32)

Declaration
public Task DocSemWaitAsync(string member = "", int line = 0)
Parameters
Type Name Description
System.String member
System.Int32 line
Returns
Type Description
Task

Pause()

Declaration
public void Pause()

RaiseTabClosedEvent()

Request tab closed event

Declaration
public void RaiseTabClosedEvent()

ReActivateAsync()

Declaration
public Task ReActivateAsync()
Returns
Type Description
Task

RefreshState()

Update the metadata (saved in disk) for a particular document tab

Declaration
public void RefreshState()

Resume()

Declaration
public void Resume()

SaveDocumentAsync()

Declaration
public Task SaveDocumentAsync()
Returns
Type Description
Task

SaveDocumentImplAsync()

Declaration
public Task SaveDocumentImplAsync()
Returns
Type Description
Task

UpdateFileAsync()

Declaration
public Task UpdateFileAsync()
Returns
Type Description
Task

UpdateIsReflow()

Declaration
public void UpdateIsReflow()

UpdatePreview()

Declaration
public void UpdatePreview()

Events

PdfIsReady

Declaration
public event EventHandler<RoutedEventArgs> PdfIsReady
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.RoutedEventArgs>

PdfUpdated

Declaration
public event EventHandler<RoutedEventArgs> PdfUpdated
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.RoutedEventArgs>

ReflowTapped

Declaration
public event EventHandler<TappedRoutedEventArgs> ReflowTapped
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs>

SetUpPDFViewCtrlAndTools

Declaration
public event PdfViewCtrlTabInfo.SetUpPDFViewCtrlAndToolsHandler SetUpPDFViewCtrlAndTools
Event Type
Type Description
PdfViewCtrlTabInfo.SetUpPDFViewCtrlAndToolsHandler

TabClosed

Raised when a tab has been requested to closed

Declaration
public event PdfViewCtrlTabInfo.TabClosedHandler TabClosed
Event Type
Type Description
PdfViewCtrlTabInfo.TabClosedHandler

TabSelected

Raised when a tab has been selected

Declaration
public event PdfViewCtrlTabInfo.TabSelectedHandler TabSelected
Event Type
Type Description
PdfViewCtrlTabInfo.TabSelectedHandler

TappedAfterTools

Declaration
public event EventHandler<TappedRoutedEventArgs> TappedAfterTools
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs>

TappedBeforeTools

Declaration
public event EventHandler<TappedRoutedEventArgs> TappedBeforeTools
Event Type
Type Description
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs>
In This Article
Back to top Generated by DocFX