Hi,
How can I make a function to select an item from a picker by tapping on it. As of right now, I use "Picker.SelectionChanged" to scroll through items and then I have to press OK in my footer to confirm selection. I want to remove footer and just use simple tap on item to select item and hide picker.
Example code:
Picker.SelectionChanged += (sender, args) =>
{
var item = Picker.SelectedItem;
_code = _deptList.Where(d => d.DeptDescription == item).Select(d => d.Code).First();
_department = _deptList.Where(d => d.DeptDescription == item).Select(d => d.DeptDescription).First();
// This should only be used when I tap on item.
currentTable.ItemsSource = GetProductsList(_code);
compareTable.ItemsSource = GetProductsList(_code);
totalTable.ItemsSource = GetProductsList(_code);
PickerButton.Text = _department;
Picker.IsOpen = false;
};