Passing a parameter to an ICommand

727
1
Jump to solution
06-20-2019 05:25 AM
BryanLynn1
New Contributor III

I have a checkbox on a DockPane in an Add-in. When the user clicks the checkbox, I want to call a command in the ViewModel.

I can get a simple command to work.

However, I need to pass the status of the checkbox back to the command. How do you do this? I can't seem to get the command to accept parameters.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
UmaHarano
Esri Regular Contributor

Hi Bryan

Check out this Pro SDK Community sample: LayersPane

In this sample, the text in the search text box is passed as a "parameter" to the Search ICommand.  

Thanks

Uma

View solution in original post

0 Kudos
1 Reply
UmaHarano
Esri Regular Contributor

Hi Bryan

Check out this Pro SDK Community sample: LayersPane

In this sample, the text in the search text box is passed as a "parameter" to the Search ICommand.  

Thanks

Uma

0 Kudos