DataPager.CanMoveToLastPage Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether the user can move to the last page.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls.Data (in System.Windows.Controls.Data.dll)


Public Property CanMoveToLastPage As Boolean
public bool CanMoveToLastPage { get; private set; }

Property Value

Type: System.Boolean
true if the user can move to the last page; otherwise, false.


Dependency property identifier field: CanMoveToLastPageProperty

CanMoveToLastPage is true when CanChangePage is true and the last page is not the current page.

When CanMoveToLastPage is true, the DataPager is in the MoveLastEnabled state and the LastPageButton is enabled.

When CanMoveToLastPage is false, the DataPager is in the MoveLastDisabled state and the LastPageButton is disabled.

For more information about parts and states, see DataPager Styles and Templates.

Version Information


Supported in: 5, 4, 3


For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.