If i use an SfExpander as follows:
var layout = new StackLayout
{
Margin = new Thickness(0, 20, 0, 20),
Spacing = 10,
};
var headerGrid = new Grid()
{
RowDefinitions =
{
new RowDefinition {Height = new GridLength(1, GridUnitType.Star) },
},
ColumnDefinitions =
{
new ColumnDefinition {Width = new GridLength(1, GridUnitType.Star) },
},
BackgroundColor = Color.FromHex(HJHexColors.HJBlack),
};
headerGrid.Children.Add(new Label()
{
Text = "Terms and Conditions",
BackgroundColor = Color.FromHex(HJHexColors.HJBlack),
TextColor = Color.FromHex(HJHexColors.HJWhite),
Margin = new Thickness(5),
});
layout.Children.Add(new SfExpander()
{
Header = headerGrid,
Content = new TermsLabel(),
HeaderIconPosition = IconPosition.End,
});
The background of the header is black but the background of header icon is white.
How do I change the background color of the header icon area?