Bug 7772 - FindViewById<T> not available on Dialog-derived classes
Summary: FindViewById<T> not available on Dialog-derived classes
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: BCL Class Libraries ()
Version: 4.2.x
Hardware: PC Mac OS
: --- enhancement
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2012-10-10 09:04 UTC by Timm
Modified: 2014-03-27 14:17 UTC (History)
3 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:
VERIFIED FIXED

Description Timm 2012-10-10 09:04:37 UTC
I find FindViewById<T> much cleaner than (T)FindViewById and was surprised that this was only available on Activity and not Dialog based classes.

It would be nice to have the same functionality on both classes.

A workaround is available using extension methods.
Comment 1 Jonathan Pryor 2012-10-10 17:05:19 UTC
Fixed in b44530ed.
Comment 2 Udham Singh 2014-03-27 14:17:26 UTC
I have checked this issue on following builds:

Mac OS X 10.9.2
Xamarin Studio : 4.2.3 (build 60)
Xamarin.Android: 4.13.0 (Enterprise Edition)

Screencast: http://screencast.com/t/NbptQmaA

Now this issue is working fine. Hence I am closing this issue.