1
我想讓我的應用看起來更專業,但我遇到了一個小問題,我試圖讓我的廣告位置像應用欄一樣粘在上面在1st4fans曼徹斯特聯合版中,我試圖在我的應用中添加admediator,但如果屏幕大小發生改變,它會改變位置。如何在WP8.1中的固定位置放置廣告c#
這裏是我的代碼添加
<phone:PhoneApplicationPage.ApplicationBar>
<shell:ApplicationBar IsVisible="True" IsMenuEnabled="True" Mode="Default" >
<shell:ApplicationBar.MenuItems>
</shell:ApplicationBar.MenuItems>
<shell:ApplicationBarIconButton x:Name="Refresh" IconUri="/Assets/AppBar/refresh.png" IsEnabled="True" Text="Refresh" Click="Refresh_Click"/>
<shell:ApplicationBarIconButton x:Name="Deals" IconUri="Assets/AppBar/appbar.dollar.png" IsEnabled="True" Text="Deals" Click="Deals_Click"/>
<shell:ApplicationBarIconButton x:Name="Share" IconUri="/Assets/AppBar/share.png" IsEnabled="True" Text="Share" Click="Share_Click"/>
</shell:ApplicationBar>
</phone:PhoneApplicationPage.ApplicationBar>
<!--LayoutRoot is the root grid where all page content is placed-->
<Grid x:Name="RLayoutRoot">
<phone:WebBrowser x:Name="WebView" LoadCompleted="WebView_LoadCompleted" />
<WindowsPhone8:AdMediatorControl x:Name="AdMediator_E63AA5" HorizontalAlignment="Left" Height="80" Id="AdMediator-Id-88DF6148-5162-486A-B897-11473F4AB2F9" Margin="-10,616,0,0" VerticalAlignment="Top" Width="480"/>
<ProgressBar x:Name="ReadProgress" HorizontalAlignment="Left" Height="60" VerticalAlignment="Top" Width="480" Margin="10,325,-10,0"/>
</Grid>
謝謝你的工作 – gnyangolo
所以請設置我的答案爲接受,所以它可以幫助更多的人 –
好的。它再次感謝。 – gnyangolo