I'm trying to show tooltip on map using the ShowCalloutAt method,
and i ran into problems with it, when i try to style the tooltip a bit i get the following result
see the white arrow beside the main tooltip.
my code:
var callout = new Callout()
{
Background = new SolidColorBrush(Color.FromArgb(255, (byte)51, (byte)51, (byte)51)),
BorderBrush = new SolidColorBrush(Color.FromArgb(255, (byte)102, (byte)102, 102)),
Foreground = Brushes.White,
BorderThickness = new Thickness(1),
Padding = new Thickness(8,3,8,4),
HorizontalContentAlignment = HorizontalAlignment.Left,
VerticalContentAlignment = VerticalAlignment.Center,
Content = calloutAction.Text
};
ArcMapView.ShowCalloutAt(calloutAction.location, callout);
the second issue is when i dont use my own style, and use CalloutDefinition:
ArcMapView.ShowCalloutAt(calloutAction.location, new CalloutDefinition(calloutAction.Text));
i get the following "bug" sometimes, the popup wont show at all and the text is written to the right of the graphics
i'm using 100.6 SDK and the popup is shown on MoveMouse event