// Elimina el layout anterior private void ClearLastLayout() { if (_popupBasicStyle != null) { _popupBasicStyle = null; } else if (_popupCheckPickerStyle != null) { _popupCheckPickerStyle = null; } else { _popupRadioPickerStyle = null; } }
// Actualiza el style del popup segĂșn el nuevo valor private void UpdateStyle() { switch (_popupStyle) { case PopupViewStyle.Basic: _popupBasicStyle = new PopupBasicStyle(); break; case PopupViewStyle.CheckPicker: _popupCheckPickerStyle = new PopupCheckPickerStyle(); break; case PopupViewStyle.RadioPicker: _popupRadioPickerStyle = new PopupRadioPickerStyle(); break; } }