Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
210
Map not filling grid cell
posted

Sorry folks, I'm so new to WPF/XAML and am a little lost here.  I have a geomap in a grid cell but its not filling the entire thing - that is until I actually run the app and start to zoom in on the map and then presto chango it fills the entire cell.  Again, I know this is easy but I am yet a young student who is in a little over his head on this summer project.  This is a little snipet of the xaml file in which there is a grid definition and then a xamgeographicalmap 

<Grid.RowDefinitions>
<RowDefinition Height="75" />
<RowDefinition Height="*" />
<RowDefinition Height="45" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="30" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="250" />
</Grid.ColumnDefinitions>
<ig:XamGeographicMap x:Name="GeoMap"
Grid.Column="1"
Grid.Row="1"
Background="Transparent"
PlotAreaBackground="Transparent"
OverviewPlusDetailPaneVisibility="Collapsed"
HorizontalZoomable="True"
VerticalZoomable="True" BorderThickness="1"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" WorldRect="-180,-75,360,150">
<ig:XamGeographicMap.BackgroundContent>
<ig:BingMapsMapImagery ApiKey="****************************"/>
</ig:XamGeographicMap.BackgroundContent>

</ig:XamGeographicMap>

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello Matthew,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamGeoMapBingMaps.zip
Children