robinmanuelthiel / flexbutton

Flexible button control for Xamarin.Forms
MIT License
240 stars 34 forks source link

not fire ClickedCommand or TouchedUpCommand #82

Closed lolohouse closed 5 years ago

lolohouse commented 5 years ago

Not fire command ni TouchedUp ni clicked A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: xaml: <flex:FlexButton Text="ENTRAR" Grid.Row="4" Grid.Column="1" Padding="16" FontSize="12" IsEnabled="true" IsToggled="true" ToggleMode="false" ClickedCommand="{Binding EnterCommand}" TouchedUpCommand="{Binding EnterCommand}" />

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Please complete the following information:

robinmanuelthiel commented 5 years ago

I can't reproduce your issue. Copied your code to a test project and everything works as expected. Please note, that using ClickedCommand AND TouchedUpCommand will fire the Comamnd twice, as both events fill be fired on a click.

Also, there is no point in setting ToggleMode to false and IsToggled to true.

lolohouse commented 5 years ago

Sorry, my job has not left me, prepare a test project .. I annex it now. lolo.zip