Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoCompleteBox causes an ArgumentException when setting ItemFilter delegate through XAML #48

Open
tatoadsl opened this issue Feb 19, 2021 · 0 comments

Comments

@tatoadsl
Copy link

AutoCompleteBox causes an ArgumentException when setting ItemFilter delegate through XAML. The exception is thrown when go through the InitializeComponent method indicating the "Type must derive from delegate".

Setting the XAML for the AutoCompleteBox with the properties:
ItemFilter="SearchMethod"
FilterMode="Custom"

SearchMethod is implemented in the codebehind as;

public bool SearchMethod(string searchText, object item)

The exception is thrown yet the methos is set up and working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant