Windows Phone 8.1 appbar背景图片或渐变画笔不可见?

时间:2014-09-16 10:36:55

标签: background-image windows-8.1 windows-phone-8.1 appbar

将我现有的windows store 8.1 app移植到Windows Phone 8.1时,我在命令栏的后台遇到了困难。正如您在应用程序截图中看到的那样 当我将它设置为纯色时,它工作正常,并在模拟器和设备中显示,但当我将其设置为图像背景时,我的Windows桌面应用程序appbar变为空白。
甚至尝试添加渐变而不是图像

<Page.BottomAppBar>
    <CommandBar IsOpen="True" IsSticky="True"  >
        <CommandBar.Background>
            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                <GradientStop Color="#FF8D8787" Offset="0.3"/>
                <GradientStop Color="#FFC9242B"/>
            </LinearGradientBrush>
        </CommandBar.Background>           
    </CommandBar>
</Page.BottomAppBar>


仍然显示空白我该如何修复它。
2)即使appbar的Tapped事件不起作用也必须将它们转换为点击事件。点击了正确的事件吗?

0 个答案:

没有答案
相关问题