Is there anywhere I can find the default MapNavigationPane style? I'd like to change the behavior of the "Fit to Window" button.
Hi,
Thank you for your reply. I am glad that you have managed to resolve your issues.
That's all I needed. You've been a great help. Thank you.
I am just checking, if you require any further assistance on this matter.
Thank you for your reply. I have been looking into your question and you could try to handle the ‘MouseLeftButtonDown’ event of visual elements which construct the layout of the button and handle the event adding the desired behavior like e.g.:
private void VerticalFitButton_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
e.Handled = true;
MessageBox.Show("do something else");
}
The visual elements are two ellipses and two paths which are defined in ‘FitBtn’ style.
I am attaching a sample application(MapSample.zip) that shows my approach.
Let me know, if you need any further assistance on this matter.
Is it possible to change the behavior of the fit to window button? I was able to remove it, but it would be better if I could change what it does.