Hi,
I am creating the views using code behind and I have the following code:
var stackLayout = new StackLayout()
{
VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center,
Margin = new Thickness(25)
};
var chipGroup = new SfChipGroup(){Type = SfChipsType.Input, };
var grid = new Grid(){HeightRequest = 350, WidthRequest = 350, VerticalOptions = LayoutOptions.Center, HorizontalOptions = LayoutOptions.Center};
grid.Children.Add(chipGroup);
chipGroup.Items.Add(new SfChip(){Text="Extra Small"});
chipGroup.Items.Add(new SfChip(){Text="Small"});
chipGroup.Items.Add(new SfChip(){Text="Medium"});
chipGroup.Items.Add(new SfChip(){Text="Large"});
chipGroup.Items.Add(new SfChip(){Text="Extra Large"});
var entry= new Entry {
BackgroundColor = Color.Chartreuse,
Margin = new Thickness(10, 10, 0, 0), WidthRequest = 110,
};
entry.Completed += (sender, args) =>
{
Console.WriteLine();
};
chipGroup.InputView = entry;
stackLayout.Children.Add(grid);
this.Content = stackLayout;
There are two issues here:
1. The entry does not appear
2. The close button is not there
Here is what renders: