Reputation: 2187
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.
On hover of image also the same foreground color is appearing:
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 };
Upvotes: 1
Views: 1539
Reputation: 32775
This was solved by applying Background color.
this.Control.BackgroundColor = new SolidColorBrush(){Opacity = 1,Color = Windows.UI.Colors.Transparent };
Upvotes: 0