Class PdfViewCtrlTabInfo
Inheritance
System.Object
PdfViewCtrlTabInfo
Assembly: pdftron.PDF.Tools.dll
public class PdfViewCtrlTabInfo : ViewModelBase
Constructors
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 |
|
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
Declaration
public bool CanBeSaved { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool DisposeWhenSaved { get; }
Property Value
Type |
Description |
System.Boolean |
|
It holds a reference to the current opened PDFDoc, which is related to a temporary StorageFile
Declaration
public PDFDoc Doc { get; set; }
Property Value
Declaration
public SemaphoreSlim DocSavingSemaphore { get; }
Property Value
Type |
Description |
SemaphoreSlim |
|
Declaration
public OpenedDocumentStates DocumentState { get; set; }
Property Value
Declaration
public bool FileLoadingError { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public StorageFile FileSourceIfNotSaveable { get; set; }
Property Value
Type |
Description |
Windows.Storage.StorageFile |
|
Declaration
public bool First { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool HasDocumentBeenModifiedSinceOpening { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool HasUserBeenWarnedAboutSaving { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
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 |
|
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 |
|
Declaration
public bool IsConverting { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsDocumentModifiedSinceLastSave { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsReflow { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsRightToLeftEnabled { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsSelected { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsUpToDate { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool IsWaitingForConversionToStart { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool Last { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public PdfViewCtrlTabMetaData MetaData { get; set; }
Property Value
Declaration
public NavigationStack NavigationStack { get; set; }
Property Value
The original file opened by the user
Declaration
public StorageFile OriginalFile { get; set; }
Property Value
Type |
Description |
Windows.Storage.StorageFile |
|
Declaration
public OutlineDialogViewModel OutlineDialogViewModel { get; }
Property Value
Declaration
public ViewModelBase ParentViewModel { get; set; }
Property Value
Declaration
public bool PdfReady { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public PDFViewCtrl PDFViewCtrl { get; set; }
Property Value
Type |
Description |
PDFViewCtrl |
|
Declaration
public string PreviewSource { get; }
Property Value
Type |
Description |
System.String |
|
ReflowCurrentPage
Declaration
public int ReflowCurrentPage { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public ReflowView ReflowView { get; set; }
Property Value
Declaration
public bool ShowConversionProgress { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool ShowHasUnsavedChanged { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
If false, auto-saving is implied
Declaration
public ShowIfModifiedStates ShowIfDocumentModified { get; set; }
Property Value
Declaration
public bool ShowPreview { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public IRandomAccessStream StreamForConversion { get; set; }
Property Value
Type |
Description |
Windows.Storage.Streams.IRandomAccessStream |
|
Declaration
public ulong SystemFileSize { get; set; }
Property Value
Type |
Description |
System.UInt64 |
|
Declaration
public DateTimeOffset SystemLastModifiedDate { get; set; }
Property Value
Type |
Description |
DateTimeOffset |
|
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 |
|
Declaration
public string ThumbnailFallback { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string ThumbnailFolder { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string Title { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public ToolManager ToolManager { get; set; }
Property Value
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
Declaration
public Task ActivateAsync()
Returns
Declaration
Declaration
public void CloseOutline()
Declaration
public Task CloseOutlineAsync()
Returns
Declaration
public static PdfViewCtrlTabInfo CreateUniversalTabInfo(PdfViewCtrlTabMetaData restoredData, StorageFile sourceFile)
Parameters
Returns
Declaration
Declaration
public void DocSemRelease(string member = "", int line = 0)
Parameters
Type |
Name |
Description |
System.String |
member |
|
System.Int32 |
line |
|
Declaration
public void DocSemWait(string member = "", int line = 0)
Parameters
Type |
Name |
Description |
System.String |
member |
|
System.Int32 |
line |
|
Declaration
public Task DocSemWaitAsync(string member = "", int line = 0)
Parameters
Type |
Name |
Description |
System.String |
member |
|
System.Int32 |
line |
|
Returns
Declaration
Declaration
public void RaiseTabClosedEvent()
Declaration
public Task ReActivateAsync()
Returns
Update the metadata (saved in disk) for a particular document tab
Declaration
public void RefreshState()
Declaration
Declaration
public Task SaveDocumentAsync()
Returns
Declaration
public Task SaveDocumentImplAsync()
Returns
Declaration
public Task UpdateFileAsync()
Returns
Declaration
public void UpdateIsReflow()
Declaration
public void UpdatePreview()
Events
Declaration
public event EventHandler<RoutedEventArgs> PdfIsReady
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.RoutedEventArgs> |
|
Declaration
public event EventHandler<RoutedEventArgs> PdfUpdated
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.RoutedEventArgs> |
|
Declaration
public event EventHandler<TappedRoutedEventArgs> ReflowTapped
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs> |
|
Declaration
public event PdfViewCtrlTabInfo.SetUpPDFViewCtrlAndToolsHandler SetUpPDFViewCtrlAndTools
Event Type
Raised when a tab has been requested to closed
Declaration
public event PdfViewCtrlTabInfo.TabClosedHandler TabClosed
Event Type
Raised when a tab has been selected
Declaration
public event PdfViewCtrlTabInfo.TabSelectedHandler TabSelected
Event Type
Declaration
public event EventHandler<TappedRoutedEventArgs> TappedAfterTools
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs> |
|
Declaration
public event EventHandler<TappedRoutedEventArgs> TappedBeforeTools
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.Input.TappedRoutedEventArgs> |
|