Hi
How do I change the colour of the rectangle that appears when I do a track zoom?
Cheers
Steve
Hi
How do I change the colour of the rectangle that appears when I do a track zoom?
Cheers
Steve
Hello Steve,
Thanks for your post, for now, in your WPF edtion, we do not support change the track zoom(extentOverlay) rectangle extent, we are discussing this, I will let you know the result here.
Regards,
Gary
Hello Steve,
Here is a temporary workaround:
Map1.ExtentOverlay.MapMouseMove += (s, a) =>
{
if (Map1.ExtentOverlay.OverlayCanvas.Children.Count > 0)
{
var trackingShape = (Rectangle)Map1.ExtentOverlay.OverlayCanvas.Children[0];
trackingShape.Fill = new SolidColorBrush(Colors.Red);
trackingShape.Stroke = new SolidColorBrush(Colors.Black);
trackingShape.Opacity = .5;
}
};
Please let me know if you meet problems.
Regards,
Gary
Hi
Getting an error - cannot cast expression of type System.Windows.UIElement to type Rectangle on this line
var trackingShape = (Rectangle)Map1.ExtentOverlay.OverlayCanvas.Children[0];
Cheers
Steve
Hello Steve,
The Rectangle is System.Windows.Shapes, I didn’t meet your problem, could you please have another try? Or could you please give me more guide if you still meet that problem.
Regards,
Gary