Post has attachment
About 80% code re-usability - is only what something that makes Xamarin so popular? http://bit.ly/2lmJDiQ

#Xamarin #CrossPlatform
Photo

Urgent Opening for Xamarin Developer post @Ahmedabad

Experience -0.6-2.0 Years in (iOS, Android)

Must have done some project in Xamarin.

If anyone is interested then inbox your updated CV at hr@orbitithr.in or contact me on - 7405040800

#XML #JSON #WebServices #Multithreading #MemoryManagement #WebTechnologies #visual studio #.net2015 #Xamarin #C# #.NetASP.Net #CSS #WPF #Android #WindowsMobile #IOsAppSQLServer #WCFA #zure #IOS #xamarin #xamarinAndroid #xamariniphone #xamariniOS

Post has attachment

Post has attachment

Post has attachment
Hi everyone!

I am currently developing an app for android and iOS with Xamarin. I have a map and should be able to place a custom annotation (pin) at a specific position.

I found a solution on the Xamarin homepage: https://developer.xamarin.com/guides/cross-platform/xamarin-forms/custom-renderer/map/

I downloaded the solution from the page and it works fine, but if I use the custom renderers in my solution it unfortunately doesn't work.

My custom iOS renderer:


[assembly: ExportRenderer(typeof(TitronMap), typeof(TitronMapRenderer))]
namespace TitronRemoteControl.iOS.Renderers
{
public class TitronMapRenderer : MapRenderer
{
UIView customPinView;
List<TitronMapPin> customPins;

protected override void OnElementChanged(ElementChangedEventArgs<View> e)
{
base.OnElementChanged(e);

if (e.OldElement != null)
{
var nativeMap = Control as MKMapView;
nativeMap.GetViewForAnnotation = null;
nativeMap.CalloutAccessoryControlTapped -= OnCalloutAccessoryControlTapped;
nativeMap.DidSelectAnnotationView -= OnDidSelectAnnotationView;
nativeMap.DidDeselectAnnotationView -= OnDidDeselectAnnotationView;
}

if (e.NewElement != null)
{
var formsMap = (TitronMap)e.NewElement;
var nativeMap = Control as MKMapView;
customPins = formsMap.CustomPins;

nativeMap.GetViewForAnnotation += GetViewForAnnotation;
nativeMap.CalloutAccessoryControlTapped += OnCalloutAccessoryControlTapped;
nativeMap.DidSelectAnnotationView += OnDidSelectAnnotationView;
nativeMap.DidDeselectAnnotationView += OnDidDeselectAnnotationView;
}
}

private MKAnnotationView GetViewForAnnotation(MKMapView mapView, IMKAnnotation annotation)
{
MKAnnotationView annotationView = null;

Debug.WriteLine("----------------------------------- in getviewforAnnotation");

if (annotation is MKUserLocation)
return null;

var anno = annotation as MKPointAnnotation;
var customPin = GetCustomPin(anno);
if (customPin == null)
{
throw new Exception("Custom pin not found");
}

But the GetViewForAnnotation method is never called.

Can anybody help me?

Thanks a lot!!

Post has attachment

Post has attachment

Post has attachment

Post has attachment
Developing Mobile Apps on Xamarin to Expand Capability of Data Capture - http://bit.ly/1vE8QAG

Cygnet leveraged Xamarin to build cross-platform apps for iOS, Android and Windows.By integrating the apps with client’s existing system and database for innovative IT companies in South Africa.

#Xamarin #Mobility #IT #Solutions  

Post has attachment
Wait while more posts are being loaded