I dynamically create Graphic layers and want to create and assign a new MapTip at runtime each time I create the layer.The simple way of creating a new MapTip object and assigning its graphics layer property is not working (see the sample code).Does any one how to do it?private void GPTask_ExecuteCompleted(object sender, GPExecuteCompleteEventArgs e)
{
GraphicsLayer graphicslayer = new GraphicsLayer();
graphicslayer.ID = "xyz";
// Adding features to graphics layer
// Rendering
graphicslayer.Renderer = cbr;
// Refresh graphics layer
graphicslayer.Refresh();
this.Map.Layers.Add(graphicslayer);
MapTip mp = new MapTip();
mp.GraphicsLayer = graphicslayer;
mp.TitleMember = "grid_code";
mp.Title = "Pollution Levels";
mp.Visibility = Visibility.Visible;
}