Closed marufbd closed 4 years ago
Your event handler is wrong You should use TEffectCompletedHandler
void Button_OnClicked(VisualElement sender, TouchCompletedEventArgs args)
{
}
@AndreiMisiukevich that does not resolve the issue. Have you tested.
Please note this behavior is only for if the ui element is inside NavigationPage.TitleView
.
And only if in the event handler I want to navigate away to another page. Both touchEff event handler and touchEff command breaks in that case.
Attached updated project
App3.zip
latest version
This seems something weird and probably a combination of how event in android is handled by Touchview and Xamarin forms Navigation works.
The
Completed
event breaks when I try to use it for navigation from Navigation page title view. Whereas a button event just works. It gives an Android FrameLayout Object disposed exception.Attached is a sample project with Navigation. The
ItemsPage.xaml
has the code:And the event handler
Everything remaining same the button works but the boxview with touch event does not. Sample project here