/// <summary> /// Views the will disappear. /// </summary> /// <param name="animated">If set to <c>true</c> animated.</param> public override void ViewWillDisappear(bool animated) { _pickerCell.SelectedItems.Clear(); foreach (var kv in _selectedCache) { _pickerCell.SelectedItems.Add(kv.Value); } _pickerCellNative.UpdateSelectedItems(true); if (_pickerCell.KeepSelectedUntilBack) { _tableView.DeselectRow(_tableView.IndexPathForSelectedRow, true); } _pickerCell.InvokeCommand(); }
public override void ViewWillDisappear(bool animated) { _pickerCell.SelectedItems.Clear(); foreach (KeyValuePair <int, object> kv in _selectedCache) { _pickerCell.MergedSelectedList.Add(kv.Value); } _pickerCell.SelectedItem = _selectedCache.Values.FirstOrDefault(); //_pickerCellNative.UpdateSelectedItems(true); if (_pickerCell.KeepSelectedUntilBack) { _tableView.DeselectRow(_tableView.IndexPathForSelectedRow, true); } _pickerCell.InvokeCommand(); }