Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

composition with forms custom controls, specicially gestures

$
0
0

I've seen one approach to gestures which I really didn't like, as it forces us to extend base classes, which is totally counter to the design goal of gestures (composition).

I would like to implement gestures in the way they were intended, which got me thinking, how does one do composition with xamarin forms controls.

i.e. I'd like to be able to write a xaml tag such as

Under the hood, I'd clearly need a reference to the native views on each platform, to be able to add the gestures.

How does one do this? I can imagine other scenarios also, where I might want this decorative/compositional behaviour.


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>