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

How to get button click parameters to ICommand in model view?

$
0
0

In button click even it passes two parameters to the code behind (object sender, EventArgs e).

private void CheckBox_Event(object sender, EventArgs e)
        {}

But if I use Command instead of click event how to pass that object sender parameter to that command in model view?

  ICommand MyCommand = new Command(() =>
        {

        });

Because I am using this to handle a check box event inside a listview. I wanna get that clicked checkbox.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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