zoft.MauiExtensions.AutoCompleteEntry icon indicating copy to clipboard operation
zoft.MauiExtensions.AutoCompleteEntry copied to clipboard

[Proposal] Add ItemTemplate to customize the Drop Down suggestions

Open peruchali opened this issue 1 year ago • 4 comments

  • To augment suggestion list to show images, tags, etc.
  • Add ItemTemplate property AutoCompleteEntry to customize the suggestion list.
  • In Android, i think Adapter = _adapter = new AutoCompleteAdapter(Context, global::Android.Resource.Layout.SimpleDropDownItem1Line); needs to be modified

peruchali avatar Sep 14 '24 12:09 peruchali

It looks like @david-d-le has a solution for this https://github.com/CommunityToolkit/Maui/discussions/1828#discussioncomment-10587261 Could you create a PR into this repo?

peruchali avatar Sep 15 '24 12:09 peruchali

Yup, there's already some work being done in this direction. I've created a new branch 'feature/item_template_support' that can be used to develop this feature.

Maybe @david-d-le can PR the code into that branch and we can work from there and add support for the rest of the platforms (iOS, Mac and Windows)?

zleao avatar Sep 16 '24 07:09 zleao

Hi, i will do PR as soon as i am back and will have access to my pc

david-d-le avatar Sep 18 '24 10:09 david-d-le

Thanks @david-d-le for the PR. I've completed the PR and now the branch 'feature/item_template_support' has the latest changes that support Android ItemTemplate. If someone starts a new development for one the platforms, write it here, so that we don't do duplicated work :) Thanks!

zleao avatar Sep 24 '24 11:09 zleao

I've created a new branch for this implementation, https://github.com/zleao/zoft.MauiExtensions.AutoCompleteEntry/tree/feature/item_template

This branch has already support for .NET9 and NoBorder feature. I'll add the changes already made for Android and try to implement the iOS and WinUI part.

zleao avatar Feb 18 '25 12:02 zleao