Select to view content in your preferred language

Passing a parameter to an ICommand

926
1
Jump to solution
06-20-2019 05:25 AM
BryanLynn1
Occasional Contributor

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