将我现有的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事件不起作用也必须将它们转换为点击事件。点击了正确的事件吗?