Is there anywhere I can find the default MapNavigationPane style? I'd like to change the behavior of the "Fit to Window" button.
Hello,
Thank you for your post. I have been looking into your question and you can find the default style for the ‘MapNavigationPane’ in:
C:\Program Files (x86)\Infragistics\2014.1\WPF\DefaultStyles\XamMap\generic.xaml
Let me know, if you need any further assistance on this matter.
I see it. For some reason I thought it would be in a separate file. Thanks.
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.
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.