Xamarin.Plugins icon indicating copy to clipboard operation
Xamarin.Plugins copied to clipboard

Setting BackgroundColor for IconButton not working

Open ChristopherStephan opened this issue 9 years ago • 3 comments

Setting the BackgroundColor or the BorderColor for an IconButton does not work for me.

  public App()
        {
            var tabbedPage = new TabbedPage();

            tabbedPage.Children.Add(new ContentPage {
                Title = "Controls",
                Content = new StackLayout {
                    Children = {
                        new IconButton() { 
                            Text = Iconize.Modules.First().Keys.First(),
                            BackgroundColor = Color.Red, // not working?
                            BorderColor = Color.Green, // not working?
                        }
                    }
                }
            });

            MainPage = tabbedPage;
        }
    }

ChristopherStephan avatar Jul 19 '16 14:07 ChristopherStephan

Same issue, only with Android and the icon is aligned to the left instead of being centered.

BackgroundColor, BorderColor and Text alignment work well with UWP.

YZahringer avatar Feb 20 '17 12:02 YZahringer

+1, no BackgroundColor support on android.

Nfinished avatar Mar 23 '17 13:03 Nfinished

Just to add that BorderWidth="0" also does not work. I.e. a border is still shown

ndastur avatar May 25 '17 09:05 ndastur