I have an issue regarding making the WPF map control fill the entire espace available in its container.
I've simplified my WPF markup code and ended up with something like:
<Window x:Class="Shapes.OnlyMap"
xmlns="schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="schemas.microsoft.com/winfx/2006/xaml"
Title="OnlyMap" Height="300" Width="300" xmlns:my="clr-namespace:ThinkGeo.MapSuite.DesktopEdition;assembly=DesktopEdition" Loaded="Window_Loaded">
<Grid>
<my:WpfMap Name="wpfMap" Margin="0" Width="270" Height="250" />
</Grid>
</Window>
But when I resize or maximize the window, the map control stays the same way, of course. I've tried to hook on the SizeChanged event, but that turned out being kind of slow. So the question is how to do it in the simplest way possible? The WPF map control has some kind of weird behavior when resizing and dragging it on the VS 2008 WPF design surface, and doesn't dock as the other WPF standard controls do.