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

Supports XAML Previewer for Visual Stuidio/Xamarin Studio #153

Closed
jaykannan opened this issue Dec 12, 2016 · 7 comments
Closed

Supports XAML Previewer for Visual Stuidio/Xamarin Studio #153

jaykannan opened this issue Dec 12, 2016 · 7 comments

Comments

@jaykannan
Copy link

jaykannan commented Dec 12, 2016

Is it possible to make ti work with the Xamarin Forms preview window like Maps would? the error currently says

Invalid XAML: Could not create a native instance of the type 'Google.Maps.MapView': the native class hasn't been loaded. It si possible to ignore this condition by setting ObjCRunTime.Class.ThrowOnInitFailure to false

This will help me design the elements on the page around the map

@amay077
Copy link
Owner

amay077 commented Dec 13, 2016

I don't support XAML preview in Visual Studio or Xamarin Studio.

(I don't know how to support it.)

@jaykannan
Copy link
Author

why not just show nothing, right now it gets an error there and the whole page doesn't work. could you try returning a null page or a blank page if it is in the previewer?

@amay077 amay077 changed the title Maps compatibility with Xamarin Forms preview window Supports XAML Previewer for Visual Stuidio/Xamarin Studio Jan 9, 2017
@amay077
Copy link
Owner

amay077 commented Jan 9, 2017

I found the solution for me - Xamarin.Forms XAML Previewer - Determine if in Design Mode in Code Behind and XAML similar to Blend — Xamarin Forums

I'll try apply to X.F.GoogleMaps.

@amay077
Copy link
Owner

amay077 commented Jan 10, 2017

I made it.
Render empty rectangle(fillColor = #008080) when FormsGoogleMaps.Init not called.
Also contains XAML Previewer for Visual Studio/Xamarin Studio.

2017-01-10 20 56 48

@jaykannan
Copy link
Author

jaykannan commented Jan 13, 2017

Thanks! what build is it? I'm using 1.7.1-beta4

@amay077
Copy link
Owner

amay077 commented Jan 13, 2017

Yes, 1.7.1-beta4 including this.

Probably you should do listed operations:

  • Update Xamarin.Forms nuget package(each projects) to 2.3.3.x
  • Clean and Rebuild each projects
  • Restart Xamarin Studio

@amay077
Copy link
Owner

amay077 commented Feb 1, 2017

No problem?
Okay closed it.

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

No branches or pull requests

2 participants