Example #1
0
        /// <summary>
        /// Callout is touched
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">CalloutClickedEventArgs</param>
        internal void HandleCalloutClicked(object sender, CalloutClickedEventArgs e)
        {
            CalloutClicked?.Invoke(this, e);

            if (e.Handled)
            {
                return;
            }

            // Check, if callout is closeable by click
            if (IsClosableByClick)
            {
                _pin.HideCallout();
                e.Handled = true;
            }
        }
Example #2
0
        /// <summary>
        /// Raises <see cref="CalloutClicked"/>
        /// </summary>
        protected void OnCalloutClicked(TKCustomMapPin pin)
        {
            CalloutClicked?.Invoke(this, new TKGenericEventArgs <TKCustomMapPin>(pin));

            RaiseCommand(CalloutClickedCommand, pin);
        }
Example #3
0
 /// <summary>
 /// Callout is touched
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="e">SKTouchEventArgs</param>
 private void HandleCalloutClicked(object sender, EventArgs e)
 {
     CalloutClicked?.Invoke(this, e);
 }