Is it possible to handle click on a feature of feature layer? So if I click a feature, custom code is executed.
There is a MapSelectionChangedEvent that gets triggered when the selection has changed (when you click on a feature) in the map. So you could listen for this event and execute your code.