Background color in UWP App

1.5k views Asked by At

We recently upgraded from windows framework from 10.0.10240 to 10.0.15063. We have struck at a button design issue where a background color is appearing as grey. Before upgrade this color was not appearing. We need to remove this grey color behind text.

After windows framework upgrade

On hover of image also the same foreground color is appearing:

enter image description here

Xamarin.Forms.Button doesn't have a Foreground color equivalent property. I tried custom renderer with setting Xamarin.Forms.Platform.UWP.FormsButton.Foreground but no effect on button control.

Is there any Style Setter I can try to resolve the issue? Any help please.

Edit

This was solved by applying Background color, earlier I was setting Foreground on button,

this.Control.BackgroundColor = new SolidColorBrush() { Opacity = 1, Color= Windows.UI.Colors.Transparent };
1

There are 1 answers

0
Nico Zhu On BEST ANSWER

This was solved by applying Background color.

this.Control.BackgroundColor = new SolidColorBrush(){Opacity = 1,Color = Windows.UI.Colors.Transparent };