david
david

Reputation: 1127

Windows phone 8 Button style is transparent

My button looks like a text field instead of a button. Here's a screenshot:

Here's the code:

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

How do I fix it and make it look like a good old button?

Upvotes: 0

Views: 396

Answers (1)

Scott Wylie
Scott Wylie

Reputation: 4735

Looks like the problem is that you have an image as your background and the button is transparent so it is showing the image. Just change your button background to White and it should fix it

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

Upvotes: 1

Related Questions