【问题标题】:Windows phone 8 Button style is transparentWindows phone 8 按钮样式是透明的
【发布时间】:2013-08-11 14:41:20
【问题描述】:

我的按钮看起来像一个文本字段,而不是一个按钮。截图如下:

代码如下:

<Button FontWeight="Bold" Click="setWallpaper" Foreground="black"  FontSize="35" 
    Margin="62,560,127,48" >Set Lockscreen</Button>

如何修复它并使它看起来像一个不错的旧按钮?

【问题讨论】:

    标签: xaml button text windows-phone-8 styles


    【解决方案1】:

    看起来问题在于您将图像作为背景并且按钮是透明的,因此它正在显示图像。只需将您的按钮背景更改为白色,它应该可以修复它

    <Button FontWeight="Bold" Click="setWallpaper" Foreground="Black"  FontSize="35" Background="White" Margin="62,560,127,48" >Set Lockscreen</Button>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-10
      相关资源
      最近更新 更多