Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xamarin Forms 2.0 breaks ViewExtensions #26

Open
SmartyP opened this issue Nov 22, 2015 · 1 comment
Open

Xamarin Forms 2.0 breaks ViewExtensions #26

SmartyP opened this issue Nov 22, 2015 · 1 comment

Comments

@SmartyP
Copy link

SmartyP commented Nov 22, 2015

I was trying to put the PageViewContainer into a sample app and was having some issues, so I got the full project and tried to use it after updating packages to use Xamarin.Forms 2.0, but I was getting a crash trying to switch between the 3 sample pages.

The issue is in ViewExtensions.cs, the GetRenderer() method and GetRenderDelegate() delegate were previously referencing BindableObject, but have to be changed to VisualElement instead to get it back working without a crash. I figured this out after comparing the Platform.cs in the old and new libraries.

Thanks much for this example!

@georgejecook
Copy link
Collaborator

Thanks for looking into that. Switching over to xamarin forms 2.0 is on this weekends agenda.

Sent from my iPhone

On 22 Nov 2015, at 02:23, SmartyP notifications@github.com wrote:

I was trying to put the PageViewContainer into a sample app and was having some issues, so I got the full project and tried to use it after updating packages to use Xamarin.Forms 2.0, but I was getting a crash trying to switch between the 3 sample pages.

The issue is in ViewExtensions.cs, the GetRenderer() method and GetRenderDelegate() delegate were previously referencing BindableObject, but have to be changed to VisualElement instead to get it back working without a crash. I figured this out after comparing the Platform.cs in the old and new libraries.

Thanks much for this example!


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants