private void UpdateOnPopupClosed(object sender, ClosePopupEventArgs e) { if (AllowUpdateOnPopupClosed) { BindingExpression binding = this.GetBindingExpression(BaseEdit.EditValueProperty); if (binding != null && binding.DataItem != null && binding.ResolvedSourcePropertyName != null) { PropertyInfo property = binding.DataItem.GetType().GetProperty(binding.ResolvedSourcePropertyName); if (property != null) { property.SetValue(binding.DataItem, e.EditValue); } } } }
public void PopupVehicleClosing(ClosePopupEventArgs args) { switch (args.CloseMode) { case PopupCloseMode.Normal: break; case PopupCloseMode.Cancel: VehicleId = 0; break; default: throw new ArgumentOutOfRangeException(); } }
void PivotGridRadioFilter_PopupClosed(object sender, ClosePopupEventArgs e) { PivotGridControl pivot = PivotField.Parent as PivotGridControl; if (e.CloseMode == DevExpress.Xpf.Editors.PopupCloseMode.Cancel || PivotField == null || SelectedItems == null || pivot == null) { return; } var values = SelectedItems.OfType <PivotValueInfo>().Select(v => v.Value).ToArray(); if (PivotField.FilterValues.FilterType == FieldFilterType.Included) { PivotField.FilterValues.ValuesIncluded = values; } else { PivotField.FilterValues.ValuesExcluded = PivotField.GetUniqueValues().Except(values).ToArray(); } }
void cmb_PopupClosed(object sender, ClosePopupEventArgs e) { item = null; }