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

AccessoryButtonTapped is not called when overriding it #236

Open
therealjohn opened this issue Nov 12, 2015 · 2 comments
Open

AccessoryButtonTapped is not called when overriding it #236

therealjohn opened this issue Nov 12, 2015 · 2 comments

Comments

@therealjohn
Copy link

See https://bugzilla.xamarin.com/show_bug.cgi?id=15329

@therealjohn
Copy link
Author

Looking at this more, it seems it will file here.

Overriding in a DialogViewController won't work, but you do have access to the AccessoryTapped event for each Element which does get fired.

@therealjohn
Copy link
Author

It might be better to change this to call Container.AccessoryButtonTapped(tableView, indexPath); instead. This would let the user override the AccessoryButtonTapped method in a DialogViewController subclass and have access to the index of the element that was tapped.

Right now it's assumed it's always a StyledStringElement and there is info for index in the event.

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