void AdvancedListView_ItemClick(object sender, ItemClickEventArgs e) { if (ItemClickedCommand != null) { ItemClickedCommand.Execute(e); } }
private void ContentListView_SelectionChanged(object sender, SelectionChangedEventArgs e) { Debug.WriteLine("ExpanderView: Selection Changed"); if (ItemClickedCommand.CanExecute(ContentListView.SelectedItem)) { ItemClickedCommand.Execute(ContentListView.SelectedItem); } }
private void OnItemTapped(object sender, ItemTappedEventArgs e) { if (e.Item != null && ItemClickedCommand != null && ItemClickedCommand.CanExecute(e)) { ItemClickedCommand.Execute(e.Item); SelectedItem = null; //we don't need the SelectedItem if we have binding to ItemClickedCommand } }
private void OnItemTapped(object sender, ItemTappedEventArgs e) { if (e.Item != null && ItemClickedCommand != null && ItemClickedCommand.CanExecute(e)) { ItemClickedCommand.Execute(e.Item); SelectedItem = null; } }