高级ApplicationBar背景色? (Windows Phone 8)

时间:2014-11-12 12:24:13

标签: xaml windows-phone-8

如何更改Advanced ApplicationBar的背景?我尝试了这个,但它保持黑色。

 <Sh:AdvancedApplicationBar Background="Gray">
                        <Grid>
                            <Sh:AdvancedApplicationBarIconButton Text="edit"
                                                                 IconUri="/Assets/ActionBarButtons/btn_actionbar_edit.png"
                                                                 Command="{Binding EditCommand}"
                                                                 VerticalAlignment="Bottom" />
                        </Grid>
                </Sh:AdvancedApplicationBar>

2 个答案:

答案 0 :(得分:0)

<Sh:AdvancedApplicationBar Background="Gray">替换为<Sh:AdvancedApplicationBar BackgroundColor="Gray">

答案 1 :(得分:0)

我发现它,它是普通Appbar的包装器所以你需要这样做:

 <phone:PhoneApplicationPage.ApplicationBar>
    <shell:ApplicationBar BackgroundColor="Gray"
                          Opacity="0.5" />
</phone:PhoneApplicationPage.ApplicationBar>