@Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) I got the solution. Fortunately when I was debugging on a device, tapping the Cancel button broke in SearchBar_TextChanged event pointing to what element is null. It is none other than the SearchBar.Text. So testing for null before using it resolved the issue. The code is as below:
private void sbSearchData_TextChanged(object sender, TextChangedEventArgs e)
{
SearchBar sb = (SearchBar)sender;
// This test is needed to avoid crashing of iOS app on
// tapping the Cancel button that appears when something
// is entered into the SearchBar's text box.
if (!string.IsNullOrEmpty(sb.Text))
{
itemsVM.searchFilter = sb.Text.Trim().ToLower();
itemsVM.LoadItemsCommand.Execute(null);
}