c# - Bind Click function with parameter -


in mvvm cross android in xamarin studio,

i can write in .axml file bind click function button:

local:mvxbind="click sendmessage"   

sendmessage public method on mvxviewmodel signature

public void sendmessage()  { //do stuff } 


however, want like this,

local:mvxbind="click sendmessage param1: foo, param2: bar" 

which should call method underneath signature this,

public void sendmessage(t foo, t bar)  { //do stuff } 

where foo , bar might current selected item, or object represented in particular row of table etc.

i can't see anywhere points towards how this, , hoping native functionality! can help?

the binding engine allows use either icommand instances or public void methods. latter works if install nuget package methodbinding.

as amount of parameters supported, boils down single argument, should correspond viewmodel bound item in listview.


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -