question

nnovalbos-6961 avatar image
0 Votes"
nnovalbos-6961 asked nnovalbos-6961 commented

Add event tigger to ContenView

I am implementing my own control in which I try to simulate an android floating action button.

I want to add an event trigger triggered by the 'OnClick' event, but I am not able to trigger that event.

My idea is to make pressing the control scale down to simulate the click action.

Any ideas?

Thanks

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I want to add an event trigger triggered by the 'OnClick' event, but I am not able to trigger that event

@nnovalbos-6961 What's the 'OnClick' event? Is it an event of another control such as a button? Please post more details about the requirement and share the related code about the designed view.

My idea is to make pressing the control scale down to simulate the click action.

Do you mean pressing the control to trigger an event? If so, try to add a tap gesture to the view and detect the Tapped event.

0 Votes 0 ·

1 Answer

alessandrocaliaro avatar image
0 Votes"
alessandrocaliaro answered nnovalbos-6961 commented

I have never used it but you can try watch


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks @alessandrocaliaro , @JarvanZhang-MSFT

xamarin community toolkit solved my problem

0 Votes 0 ·