Bug 37868 - Wrong error text in ContextActionsCell (IBoxedCell instead INativeElementView)
Summary: Wrong error text in ContextActionsCell (IBoxedCell instead INativeElementView)
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: iOS ()
Version: 2.0.0
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Samantha Houts [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2016-01-21 12:25 UTC by Dmitry Moiseev
Modified: 2016-03-30 23:13 UTC (History)
1 user (show)

Tags: ac
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 FIXED

Description Dmitry Moiseev 2016-01-21 12:25:46 UTC
internal class ContextActionsCell : UITableViewCell, INativeElementView
  {
    Element INativeElementView.Element
    {
      get
      {
        INativeElementView nativeElementView = this.ContentCell as INativeElementView;
        if (nativeElementView == null)
          throw new InvalidOperationException("Implement IBoxedCell on cell renderer: " + this.ContentCell.GetType().AssemblyQualifiedName);
        return nativeElementView.Element;
      }
    }
  }

I propose to replace to 

  internal class ContextActionsCell : UITableViewCell, INativeElementView
  {
    Element INativeElementView.Element
    {
      get
      {
        INativeElementView nativeElementView = (INativeElementView)this.ContentCell;
        return nativeElementView.Element;
      }
    }
  }
Comment 1 Samantha Houts [MSFT] 2016-03-30 23:13:25 UTC
This has been fixed in an earlier version. Thanks!