protected virtual void OnClick(object sender, VEPushPinClickedEventArgs e) { if (Click != null) { Click(this, e); } }
protected void Button_Click(object sender, RoutedEventArgs e) { if (Map != null) { Map.SendToFront(this); } VEPushPinClickedEventArgs args = new VEPushPinClickedEventArgs(e); Point?position = GetPosition(LatLong); if (position != null) { args.PushPinScreenPosition = this.Map.PointToScreen(new Point(position.Value.X, position.Value.Y)); } else { args.PushPinScreenPosition = new Point(0, 0); } OnClick(this, args); }