XamFormsExtended / Xfx.Controls

Xamarin Forms Extended Controls
MIT License
192 stars 79 forks source link

Completed event and ReturnCommand do not work #107

Open jokogarcia opened 4 years ago

jokogarcia commented 4 years ago

74 Bug

The native Xamarin.Forms Entry view has a Completed event and a ReturnCommand that can be used to run an action when the user presses the "return key". These properties are exposed in Xfx.Entry but have no effect. Simply changing the "xfx.entry" into a vanilla "Entry" item, causes the event / command to fire again.

Affects

Expected Behavior

Command bound to ReturnCommand property to fire when user press return key and Completed event in view codebehind fire as well.

Actual Behavior

Command bound to ReturnCommand property and Completed event are ignored.

Steps to reproduce the Behavior

Create a view with a xfxentry in XAML. Create a OnEntryCompleted event on View codebehind and / or create a ReturnCommand in viewModel Set Completed property of xfxentry to OnEntryCompleted and / or set the ReturnCommand property to {Binding ReturnCommand} in XAML Execute and test to see that the event and the command are ignored. They are not fired when the user presses the "enter" key on soft-keyboard. Change the Xfx.Entry to a simple Entry and see that the events and commands are properly executed.