Class ThumbnailViewer
Control that displays thumbnails in a grid pattern, and allows rearranging, adding, and removing of pages.
Inheritance
System.Object
Windows.UI.Xaml.DependencyObject
Windows.UI.Xaml.UIElement
Windows.UI.Xaml.FrameworkElement
Windows.UI.Xaml.Controls.Control
Windows.UI.Xaml.Controls.UserControl
ThumbnailViewer
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Assembly: pdftron.PDF.Tools.dll
public sealed class ThumbnailViewer : UserControl, IDependencyObject, IDependencyObject2, IUIElement, IUIElement2, IUIElement3, IUIElement4, IUIElement5, IUIElement7, IUIElement8, IUIElement9, IUIElement10, IUIElementOverrides, IUIElementOverrides7, IUIElementOverrides8, IUIElementOverrides9, IAnimationObject, IVisualElement, IFrameworkElement, IFrameworkElement2, IFrameworkElement3, IFrameworkElement4, IFrameworkElement6, IFrameworkElement7, IFrameworkElementProtected7, IFrameworkElementOverrides, IFrameworkElementOverrides2, IControl, IControl2, IControl3, IControl4, IControl5, IControl7, IControlProtected, IControlOverrides, IControlOverrides6, IUserControl, ICloseableControl
Constructors
Declaration
Declaration
public ThumbnailViewer(PDFViewCtrl ctrl, string docTag)
Parameters
Type |
Name |
Description |
PDFViewCtrl |
ctrl |
|
System.String |
docTag |
|
Declaration
public ThumbnailViewer(PDFViewCtrl ctrl, string docTag, Color background)
Parameters
Type |
Name |
Description |
PDFViewCtrl |
ctrl |
|
System.String |
docTag |
|
Windows.UI.Color |
background |
|
Properties
The max width of items when automatically sizing items.
This property only has an effect if NumberOfColumns is NaN or 0
Declaration
public double AutoSizingMaxWidth { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public Brush Background { get; set; }
Property Value
Type |
Description |
Windows.UI.Xaml.Media.Brush |
|
BlankPageDefaultColor
Declaration
public Color BlankPageDefaultColor { get; set; }
Property Value
Type |
Description |
Windows.UI.Color |
|
Declaration
public string DocumentTag { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets whether Items should be automatically fitted to the width of the ThumbnailViewer,
according to NumberOfColumns
Declaration
public bool FitItemsToWidth { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Sets the padding between items in the ThumbnailsView
Declaration
public Thickness ItemPadding { get; set; }
Property Value
Type |
Description |
Windows.UI.Xaml.Thickness |
|
Declaration
public double ListViewItemHeight { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public double ListViewItemWidth { get; set; }
Property Value
Type |
Description |
System.Double |
|
Declaration
public bool NavigationOnly { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public NavigationStack NavigationStack { get; set; }
Property Value
Gets or sets the number of columns of thumbnails in the ThumbnailsView
Null or any number less than 1 means that the View will calculate an appropriate number of
columns based on its size
Declaration
public int NumberOfColumns { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Declaration
public PDFViewCtrl PDFViewCtrl { set; }
Property Value
Type |
Description |
PDFViewCtrl |
|
Declaration
public ToolManager ToolManager { set; }
Property Value
This boolean can be set to inform the AnnotationList that it can not scroll.
This happens for example when the AnnotationList is in a Pivot and not in view.
Setting this to true will scroll the currently selected item into view
and also affects restoring state.
Declaration
public bool ViewIsVisible { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public ThumbnailsViewViewModel ViewModel { get; }
Property Value
Methods
Declaration
public void CloseControl()
Will perform a back operation if applicable.
Use this when the back button is pressed to give this control a chance to handle it.
Declaration
Returns
Type |
Description |
System.Boolean |
true if the control could go back
|
PageModified(Int32)
Declaration
public void PageModified(int pageNumber)
Parameters
Type |
Name |
Description |
System.Int32 |
pageNumber |
|
SelectPages(IList<Int32>)
Declaration
public void SelectPages(IList<int> pagesToSelect)
Parameters
Type |
Name |
Description |
IList<System.Int32> |
pagesToSelect |
|
Events
Declaration
public event ControlClosedDelegate ControlClosed
Event Type
Declaration
public event EventHandler<ItemClickEventArgs> ItemClicked
Event Type
Type |
Description |
Windows.Foundation.EventHandler<Windows.UI.Xaml.Controls.ItemClickEventArgs> |
|
Implements
Windows.UI.Composition.IAnimationObject
Windows.UI.Composition.IVisualElement
Extension Methods