Stefanos Chrs
Stefanos Chrs

Reputation: 2528

Bing map & Hub Windows Store App Theme

Hello i want to place the Bing Map in the 1st HubSection but i get a very small box containing the map instead of having the whole Section.

<HubSection Width="780" Margin="0,0,80,0">
   <DataTemplate>
      <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
         <bm:MapCredentials="key" x:Name="myMap" MapType="Aerial" ZoomLevel="9.5">
         <bm:Map.Center>
            <bm:Location Latitude="35.1" Longitude="33.33333333" />
         </bm:Map.Center>
         </bm:Map>
      </Grid>
   </DataTemplate>

Upvotes: 0

Views: 1123

Answers (1)

Stefanos Chrs
Stefanos Chrs

Reputation: 2528

To anyone still interested in this I have found the solution:

        <HubSection Width="1000" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch">
            <DataTemplate>
                <bm:Map Credentials="INSERT_YOUR_BING_MAPS_KEY" x:Name="myMap"></bm:Map>
            </DataTemplate>
        </HubSection>

It wasn't that hard after all

Upvotes: 2

Related Questions