BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
<StackLayout> <ScrollView> <buttons:SfChipGroup Type="Filter" ItemsSource="{Binding ChipItems}" SelectionChanged="SfChipGroup_SelectionChanged" SelectedItems="{Binding SelectedItems}" DisplayMemberPath="Product"/> </ScrollView> <Label Text="Already selected Chips" Margin="0,10,0,0"/> <ListView ItemsSource="{Binding PreviouslySelectedItems}"> <ListView.ItemTemplate> <DataTemplate> <ViewCell> <Label Text="{Binding Product}" /> </ViewCell> </DataTemplate> </ListView.ItemTemplate> </ListView> </StackLayout> |
private void SfChipGroup_SelectionChanged(object sender, Syncfusion.Buttons.XForms.SfChip.SelectionChangedEventArgs e) { if (!viewModel.PreviouslySelectedItems.Contains(e.AddedItem) && e.AddedItem != null) { viewModel.PreviouslySelectedItems.Add(e.AddedItem as Model); } } |