Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Xamarin.Forms.GoogleMaps cannot derive from sealed type pin. Trying to add custom properties to pin

$
0
0

I am currently trying to add custom properties to my pin class, and I have to use xamarin.forms.google.maps because of its "Selected pin" event.

public class Pin : Xamarin.Forms.GoogleMaps.Pin // cannot derive from a sealed type "pin".
{
public string CustomProperty { get; set; }
public string CustomProperty2 { get; set; }
public string CustomProperty3 { get; set; }
public string CustomProperty4 { get; set; }

}

So how can I add custom properties? Can I access the nuget package code and unseal it?


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>