Represents base document presenter class.
Definition
Namespace:Telerik.Windows.Documents.UI
Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll
Syntax:
public abstract class FixedDocumentPresenterBase : ContentControl, IFixedDocumentPresenter
Inheritance: objectFixedDocumentPresenterBase
Derived Classes:
Implements:
Constructors
Initializes a new instance of the FixedDocumentPresenterBase class.
public FixedDocumentPresenterBase()
Properties
CurrentPage
RadFixedPage
Gets the current page.
public RadFixedPage CurrentPage { get; protected set; }
The current page.
Implements:
Gets the current page number.
protected abstract int CurrentPageNo { get; }
The current page number.
LayoutRoot
Canvas
Gets the layout root.
protected Canvas LayoutRoot { get; }
The layout root.
Gets the owner.
public IFixedDocumentViewer Owner { get; }
The owner.
Implements:
Gets the pages layout manager.
protected abstract PagesLayoutManagerBase PagesLayoutManager { get; }
The pages layout manager.
Gets the mouse handlers controller.
public PointerHandlersController PointerHandlersController { get; }
The mouse handlers controller.
Implements:
Gets the released presenters.
protected Stack<FixedPagePresenter> ReleasedPresenters { get; }
The released presenters.
Gets or sets the value indicating wheter the selection markes should be shown.
protected bool ShouldShowSelectionMarkers { get; }
The value indicating wheter the selection markes should be shown.
ViewportSize
Size
Gets or sets the size of the viewport.
protected Size ViewportSize { get; set; }
The size of the viewport.
Gets or sets the visible pages. Setting this property ensures that visible pages content is loaded.
protected IEnumerable<FixedPageLayoutInfo> VisiblePages { get; set; }
The visible pages.
Defines the amount of pages to be cached before and after the visible ones. The default value is one.
public int VisiblePagesCacheOffset { get; set; }
The amount of pages to cache before and after the visible ones. The default value is one.
Gets the visible presenters.
protected Dictionary<int, FixedPagePresenter> VisiblePresenters { get; }
The visible presenters.
Methods
Called to arrange and size the content of a Control object.
protected override Size ArrangeOverride(Size arrangeBounds)
The computed size that is used to arrange the content.
Returns:Size
The size of the control.
Gets the focused presenter.
Gets the location from view point.
public abstract bool GetLocationFromViewPoint(Point viewPoint, out RadFixedPage page, out Point location)
The view point.
pageRadFixedPageThe page.
locationPointThe location.
Returns:Implements:
Gets the page presenter.
protected virtual FixedPagePresenter GetPagePresenter(FixedPageLayoutInfo pageInfo)
The page info.
Returns:Gets the view point from location.
public virtual bool GetViewPointFromLocation(RadFixedPage page, Point location, out Point viewPoint)
The page.
locationPointThe location.
viewPointPointThe view point.
Returns:Implements:
Goes to destination.
public virtual void GoToDestination(Destination destination)
The destination.
Implements:
Goes to page.
Hides the selection markers.
public virtual void HideSelectionMarkers()
Implements:
Initializes the specified owner.
public virtual void Initialize(IFixedDocumentViewer owner, IFixedDocumentPresenter presenter)
The owner.
presenterIFixedDocumentPresenterThe presenter.
Implements:
Initializes the presenter.
public virtual void Initialize(IFixedDocumentViewer owner)
The owner.
Implements:
Called when current page is changed.
protected void OnCurrentPageChanged(RadFixedPage page)
The page.
Called before the event occurs to provide handling for the event in a derived class without attaching a delegate.
protected override void OnLostMouseCapture(MouseEventArgs e)
A MouseEventArgs that contains the event data.
Called before the event occurs.
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
The data for the event.
Called before the event occurs.
protected override void OnMouseMove(MouseEventArgs e)
The data for the event.
Called before the event occurs to provide handling for the event in a derived class without attaching a delegate.
protected override void OnMouseWheel(MouseWheelEventArgs e)
A MouseWheelEventArgs that contains the event data.
Goes page down.
public virtual void PageDown()
Implements:
Goes page up.
public virtual void PageUp()
Implements:
Releases the presenter.
public virtual void Release()
Implements:
Releases the document resources.
protected virtual void ReleaseDocumentResourcesOverride()
Releases this instance override.
protected virtual void ReleaseOverride()
Releases the page presenter.
Shows the selection markers.
public virtual void ShowSelectionMarkers()
Implements:
Updates the presenter layout.
public void UpdatePresenterLayout()
Implements:
Updates the scroll bars.
protected void UpdateScrollBars(Size viewportSize)
Size of the viewport.
Updates the scroll offset from position.
protected abstract void UpdateScrollOffsetFromPosition(TextPosition position)
The position.
Events
Occurs when current page is changed.
public event EventHandler<CurrentPageChangedEventArgs> CurrentPageChanged
Implements: