Bug 37361 - PagerAdapter.GetPageTitle is not marked virtual
Summary: PagerAdapter.GetPageTitle is not marked virtual
Status: RESOLVED ANSWERED
Alias: None
Product: Components
Classification: Xamarin
Component: Xamarin Components ()
Version: Production (addons.xamarin.com)
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bill Holmes
URL:
Depends on:
Blocks:
 
Reported: 2016-01-02 17:12 UTC by Bentley Carr
Modified: 2016-01-06 15:36 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED ANSWERED

Description Bentley Carr 2016-01-02 17:12:21 UTC
Hey,
I cannot override PagerAdapter.GetPageTitle because it is not marked virtual.

This only happens in Xamarin, not the Android SDK itself.
Comment 1 Atsushi Eno 2016-01-05 09:51:16 UTC
(Not sure if it is caused by the Components team but I'd ask them to check first if they have some special metadata fixup with related to that, or any ideas.)
Comment 2 Bill Holmes 2016-01-06 15:36:10 UTC
It appears that getPageTitle is actually implemented as GetPageTitleFormatted which is virtual.

Override GetPageTitleFormatted instead.



[Register ("getPageTitle", "(I)Ljava/lang/CharSequence;", "GetGetPageTitle_IHandler")]
public virtual ICharSequence GetPageTitleFormatted (int position)...