protected override void OnElementChanged(ElementChangedEventArgs <Page> e)
        {
            BreweryDetailsView view = (BreweryDetailsView)e.NewElement;

            view.MakePhoneCall += CreatePhoneCallIntent;
            view.OpenEmail     += CreateEmailIntent;
            view.LaunchMapApp  += LaunchMapApp;

            base.OnElementChanged(e);
        }
Ejemplo n.º 2
0
        protected override void OnElementChanged(VisualElementChangedEventArgs e)
        {
            BreweryDetailsView view = (BreweryDetailsView)e.NewElement;

            view.MakePhoneCall += TryService;
            view.OpenEmail     += OpenEmail;
            view.LaunchMapApp  += (string address) => TryService("http://maps.apple.com/?daddr=" + address);


            base.OnElementChanged(e);
        }