<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Image Margin="0" Grid.RowSpan="2" Source="Images/map_bg.jpg" Stretch="Fill"/>
<my:Map Height="649" HorizontalAlignment="Left" Name="map1" VerticalAlignment="Top" Width="451" LogoVisibility="Collapsed" Margin="2,0,0,0" />
</Grid>
Я попытался воспроизвести abit с переменными высоты и ширины, но это только изменило положение карты, а не растянуло все карты.
возможно ли вообще заставить карту "заполнять" все свойство <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
?
спасибо!
редактировать
<Grid x:Name="LayoutRoot" Background="Transparent" Opacity="0.7">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28"></StackPanel>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<Image Margin="0" Grid.RowSpan="2" Source="Images/map_bg.jpg" Stretch="Fill"/>
<my:Map Name="map1" VerticalAlignment="Top" Width="451" LogoVisibility="Collapsed" CredentialsProvider="xxx" Margin="2,0,0,0" Height="645" />
</Grid>
</Grid>