void popup_PopupClosed(object sender, PopupClosedEventArgs args) { if (arg != null && arg.Length > 0 && (int)(arg[0]) >= 0) { U_setMaxAltitude((int)arg[0], 5); } }
/// <summary> /// Called when the ComboBox popup is closed, with the <see cref="PopupClosedEventArgs"/> /// that caused the popup to close. /// </summary> /// <param name="e">The event args.</param> /// <remarks> /// This method can be overridden to control whether the event that caused the popup to close /// is swallowed or passed through. /// </remarks> protected virtual void PopupClosedOverride(PopupClosedEventArgs e) { if (e.CloseEvent is PointerEventArgs pointerEvent) { pointerEvent.Handled = true; } }
private void slideshowSettingsPopup_PopupClosed(object sender, PopupClosedEventArgs e) { SlideShowSettingsModel result = e.Result as SlideShowSettingsModel; if (result != null) { Settings.Default.QueueSpeed = result.Speed; Settings.Default.QueueEffect = result.Effect; Settings.Default.Save(); } }
private void PopupClosed(object sender, PopupClosedEventArgs e) { _subscriptionsOnOpen?.Dispose(); _subscriptionsOnOpen = null; PopupClosedOverride(e); if (CanFocus(this)) { Focus(); } }
private void popupConfigValue_CloseUp(object sender, PopupClosedEventArgs e) { // Transfer data from the popup. if (e.PopupCloseType == PopupCloseType.Done) { this.txtConfigValue.Text = this.xmlViewer.Text; } // Set focus back to textbox. if (e.PopupCloseType == PopupCloseType.Done || e.PopupCloseType == PopupCloseType.Canceled) this.txtConfigValue.Focus(); }
//used to change teh ControlValue if dropdown was closed with Done. public override void DropDownContainerCloseDropDown(object sender, PopupClosedEventArgs e) { if (e.PopupCloseType == PopupCloseType.Done) { if (this.NotifyCurrentCellChanging()) { ControlValue = this.ddUser.GetValuesToString(); this.NotifyCurrentCellChanged(); } } Grid.InvalidateRange(GridRangeInfo.Cell(RowIndex, ColIndex), GridRangeOptions.MergeCoveredCells); // Merge all cells base.DropDownContainerCloseDropDown(sender, e); }
private void PopUp_Closed(object sender, PopupClosedEventArgs e) { IsDropDownOpen = false; if (!_isPopupClosing) { if (e.CloseEvent is PointerEventArgs pointerEvent) { pointerEvent.Handled = true; } _isPopupClosing = true; Threading.Dispatcher.UIThread.InvokeAsync(() => _isPopupClosing = false); } }
private void PopupClosed(object sender, PopupClosedEventArgs e) { _subscriptionsOnOpen?.Dispose(); _subscriptionsOnOpen = null; if (e.CloseEvent is PointerEventArgs pointerEvent) { pointerEvent.Handled = true; } if (CanFocus(this)) { Focus(); } }
private void grid_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e) { TraceUtil.TraceCurrentMethodInfoIf(traceDebug, this, e); AppendOutput("CurrentCellCloseDropDown", e); }
/// <summary> /// Hides the popup /// </summary> void popupHelper_PopupClosed(object sender, PopupClosedEventArgs e) { HideCollapsedBandPopup(); }
private void ccSettingsPopup_PopupClosed(object sender, PopupClosedEventArgs e) { this.tvViewModel.CcDataChanged(); }