I am following the EfficientlyMoveAPlaneImage sample in the C# WPF VS 2008 project. However, instead of using the great circle arc I am using a GPS device's coordinates (with a simulator that moves the GPS device ). A timer refreshes the map every second (just like the sample).
In order to display the latitude/longitude of the GPS device, I am using the following code:
_featureLayer.ZoomLevelSet.ZoomLevel01.DefaultTextStyle =
TextStyles.CreateSimpleTextStyle(LABEL_KEY_NAME, "Arial", 10, DrawingFontStyles.Regular, GeoColor.StandardColors.White);
In addition, I have added an override to capture the CustomColumnFetch event. In the event I set the ColumnValue of the CustomColumnFetchEventArgs to the newly-updated latitude/longitude values of the GPS.
The problem is that when I refresh the map control (as in wpfMap1.Refresh) it doesn't force a refresh on the label text, and the event CustomColumnFetch does not re-fire. It only fires when I pan around the map.
Is this the right approach to handling this feature, and if so, how can I force a refresh on the label text?
Thanks!
Greg