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

How to bind a command parameter from code? (not XAML)

$
0
0

We can use SetBinding to bind a command from code, for example:

_sbSearch.SetBinding (SearchBar.SearchCommandProperty, EntryViewModel.ScanCommandPropertyName);

But how do you bind the CommandParameter and what do you bind it to?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



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