我的 Windows Phone 7 应用程序中有一个 bingmap。必应地图有很多图钉和信息框。现在信息框不好看。
信息框 XAML 代码如下
<my:MapLayer>
<Grid x:Name="Infobox" Visibility="Collapsed" Margin="0,-115,-15,0">
<Border Width="300" Height="210" Background="Black" Opacity="0.7" BorderBrush="White" BorderThickness="2" CornerRadius="5"/>
<StackPanel Height="200" >
<Button Name="btnClose" Content="X" FontSize="17" Click="btnClose_click" HorizontalAlignment="Right" VerticalAlignment="Top" Background="Transparent" Foreground="White" BorderThickness="0" />
<Grid Height="180" Margin="5">
<Image Source="{Binding PropertyImage}" HorizontalAlignment="Left" Width="60" Height="80"></Image>
<TextBlock Text="{Binding Description}" FontSize="20" Width="220" TextWrapping="Wrap" Height="Auto" HorizontalAlignment="Right" Padding="5" />
</Grid>
</StackPanel>
</Grid>
</my:MapLayer>
现在输出看起来像这样
我需要调整信息框的高度并对齐图像。谁能帮我?