New to Telerik UI for WPFStart a free 30-day trial

Represents base document presenter class.

Definition

Namespace:Telerik.Windows.Documents.UI

Assembly:Telerik.Windows.Controls.FixedDocumentViewers.dll

Syntax:

C#
public abstract class FixedDocumentPresenterBase : ContentControl, IFixedDocumentPresenter

Inheritance: objectFixedDocumentPresenterBase

Derived Classes: FixedDocumentPagesPresenterFixedDocumentSinglePageViewPresenter

Implements: IFixedDocumentPresenter

Constructors

Initializes a new instance of the FixedDocumentPresenterBase class.

C#
public FixedDocumentPresenterBase()

Properties

CurrentPage

RadFixedPage

Gets the current page.

C#
public RadFixedPage CurrentPage { get; protected set; }
Property Value:

The current page.

Implements: IFixedDocumentPresenter.CurrentPage

Gets the current page number.

C#
protected abstract int CurrentPageNo { get; }
Property Value:

The current page number.

Gets the layout root.

C#
protected Canvas LayoutRoot { get; }
Property Value:

The layout root.

Gets the owner.

C#
public IFixedDocumentViewer Owner { get; }
Property Value:

The owner.

Implements: IFixedDocumentPresenter.Owner

Gets the pages layout manager.

C#
protected abstract PagesLayoutManagerBase PagesLayoutManager { get; }
Property Value:

The pages layout manager.

Gets the mouse handlers controller.

C#
public PointerHandlersController PointerHandlersController { get; }
Property Value:

The mouse handlers controller.

Implements: IFixedDocumentPresenter.PointerHandlersController

Gets the released presenters.

C#
protected Stack<FixedPagePresenter> ReleasedPresenters { get; }
Property Value:

The released presenters.

Gets or sets the value indicating wheter the selection markes should be shown.

C#
protected bool ShouldShowSelectionMarkers { get; }
Property Value:

The value indicating wheter the selection markes should be shown.

Gets or sets the size of the viewport.

C#
protected Size ViewportSize { get; set; }
Property Value:

The size of the viewport.

Gets or sets the visible pages. Setting this property ensures that visible pages content is loaded.

C#
protected IEnumerable<FixedPageLayoutInfo> VisiblePages { get; set; }
Property Value:

The visible pages.

Defines the amount of pages to be cached before and after the visible ones. The default value is one.

C#
public int VisiblePagesCacheOffset { get; set; }
Property Value:

The amount of pages to cache before and after the visible ones. The default value is one.

Gets the visible presenters.

C#
protected Dictionary<int, FixedPagePresenter> VisiblePresenters { get; }
Property Value:

The visible presenters.

Methods

Called to arrange and size the content of a Control object.

C#
protected override Size ArrangeOverride(Size arrangeBounds)
Parameters:arrangeBoundsSize

The computed size that is used to arrange the content.

Returns:

Size

The size of the control.

Does the on scale factor changed.

C#
protected virtual void DoOnScaleFactorChangedOverride(double oldScaleFactor, double newScaleFactor)
Parameters:oldScaleFactordouble

The old scale factor.

newScaleFactordouble

The new scale factor.

Gets the focused presenter.

C#
protected virtual FixedPagePresenter GetFocusedPresenter()
Returns:

FixedPagePresenter

Gets the location from view point.

C#
public abstract bool GetLocationFromViewPoint(Point viewPoint, out RadFixedPage page, out Point location)
Parameters:viewPointPoint

The view point.

pageRadFixedPage

The page.

locationPoint

The location.

Returns:

bool

Implements: IFixedDocumentPresenter.GetLocationFromViewPoint(Point, out RadFixedPage, out Point)

Gets the page presenter.

C#
protected virtual FixedPagePresenter GetPagePresenter(FixedPageLayoutInfo pageInfo)
Parameters:pageInfoFixedPageLayoutInfo

The page info.

Returns:

FixedPagePresenter

Gets the view point from location.

C#
public virtual bool GetViewPointFromLocation(RadFixedPage page, Point location, out Point viewPoint)
Parameters:pageRadFixedPage

The page.

locationPoint

The location.

viewPointPoint

The view point.

Returns:

bool

Implements: IFixedDocumentPresenter.GetViewPointFromLocation(RadFixedPage, Point, out Point)

Goes to destination.

C#
public virtual void GoToDestination(Destination destination)
Parameters:destinationDestination

The destination.

Implements: IFixedDocumentPresenter.GoToDestination(Destination)

Goes to page.

C#
public virtual void GoToPage(int pageNo)
Parameters:pageNoint

The page no.

Implements: IFixedDocumentPresenter.GoToPage(int)

Hides the selection markers.

C#
public virtual void HideSelectionMarkers()

Implements: IFixedDocumentPresenter.HideSelectionMarkers()

Initializes the specified owner.

C#
public virtual void Initialize(IFixedDocumentViewer owner, IFixedDocumentPresenter presenter)
Parameters:ownerIFixedDocumentViewer

The owner.

presenterIFixedDocumentPresenter

The presenter.

Implements: IFixedDocumentPresenter.Initialize(IFixedDocumentViewer, IFixedDocumentPresenter)

Initializes the presenter.

C#
public virtual void Initialize(IFixedDocumentViewer owner)
Parameters:ownerIFixedDocumentViewer

The owner.

Implements: IFixedDocumentPresenter.Initialize(IFixedDocumentViewer)

Called when current page is changed.

C#
protected void OnCurrentPageChanged(RadFixedPage page)
Parameters:pageRadFixedPage

The page.

Called before the event occurs to provide handling for the event in a derived class without attaching a delegate.

C#
protected override void OnLostMouseCapture(MouseEventArgs e)
Parameters:eMouseEventArgs

A MouseEventArgs that contains the event data.

Called before the event occurs.

C#
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters:eMouseButtonEventArgs

The data for the event.

Called before the event occurs.

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

The data for the event.

Called before the event occurs to provide handling for the event in a derived class without attaching a delegate.

C#
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters:eMouseWheelEventArgs

A MouseWheelEventArgs that contains the event data.

Goes page down.

C#
public virtual void PageDown()

Implements: IFixedDocumentPresenter.PageDown()

Goes page up.

C#
public virtual void PageUp()

Implements: IFixedDocumentPresenter.PageUp()

Releases the presenter.

C#
public virtual void Release()

Implements: IFixedDocumentPresenter.Release()

Releases the document resources.

C#
protected virtual void ReleaseDocumentResourcesOverride()

Releases this instance override.

C#
protected virtual void ReleaseOverride()

Releases the page presenter.

C#
protected virtual void ReleasePagePresenter(int pageNo)
Parameters:pageNoint

The page no.

Shows the selection markers.

C#
public virtual void ShowSelectionMarkers()

Implements: IFixedDocumentPresenter.ShowSelectionMarkers()

Updates the presenter layout.

C#
public void UpdatePresenterLayout()

Implements: IFixedDocumentPresenter.UpdatePresenterLayout()

Updates the scroll bars.

C#
protected void UpdateScrollBars(Size viewportSize)
Parameters:viewportSizeSize

Size of the viewport.

Updates the scroll offset from position.

C#
protected abstract void UpdateScrollOffsetFromPosition(TextPosition position)
Parameters:positionTextPosition

The position.

Events

Occurs when current page is changed.

C#
public event EventHandler<CurrentPageChangedEventArgs> CurrentPageChanged

Implements: IFixedDocumentPresenter.CurrentPageChanged