ex-makina / marklight-issues

Public bug and issue tracker for MarkLight
1 stars 0 forks source link

Allow binding callbacks to ViewActions #63

Open patrik-u opened 8 years ago

patrik-u commented 8 years ago

It could be convenient if you could bind a callback to a view action. The callback then can reside inside Item data:

<List Items=...>
    <ListItem Click="{#Item.ItemClicked}"> 
     ....

And in that way we no longer limit view action handlers to being on the parent view-model. Most of this can be worked around at the moment, see if there are more use-cases that warrants this functionality.