0

In Windows Presentation Foundation I am getting errors in the designer on this line:

<WindowsPresentation:GMapControl x:Name="MainMap" Zoom="13" MaxZoom="24" MinZoom="1" Margin="0,145,0,0" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="Auto" />

However, the program runs just fine. I'm totally stumped. The designer also renders perfectly. It's just an error in the errors list.

1
  • 2
    The F in WPF is Foundation not Forms ;) Commented Sep 19, 2012 at 5:44

1 Answer 1

3

Well, already found the solution.

It turns out that the amazing GMaps Control has a bug in which declaring Zoom in the WPF XAML syntax will raise a NullReferenceException. Removing this tag has fixed the issue:

<WindowsPresentation:GMapControl x:Name="MainMap" CanDragMap="True"  MaxZoom="24" MinZoom="1"  Margin="0,145,0,0" Height="Auto" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" Width="Auto" />

I hope this helps someone with the same problem.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.