コード例 #1
0
ファイル: AltPanel.cs プロジェクト: wootra/TestNetConnector
 void popup_PopupClosed(object sender, PopupClosedEventArgs args)
 {
     if (arg != null && arg.Length > 0 && (int)(arg[0]) >= 0)
     {
         U_setMaxAltitude((int)arg[0], 5);
     }
 }
コード例 #2
0
ファイル: ComboBox.cs プロジェクト: yahiheb/Avalonia
 /// <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;
     }
 }
コード例 #3
0
        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();
            }
        }
コード例 #4
0
ファイル: ComboBox.cs プロジェクト: yahiheb/Avalonia
        private void PopupClosed(object sender, PopupClosedEventArgs e)
        {
            _subscriptionsOnOpen?.Dispose();
            _subscriptionsOnOpen = null;

            PopupClosedOverride(e);

            if (CanFocus(this))
            {
                Focus();
            }
        }
コード例 #5
0
 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();
 }
コード例 #6
0
        //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);
        }
コード例 #7
0
ファイル: DatePicker.cs プロジェクト: xllance/Avalonia
        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);
            }
        }
コード例 #8
0
        private void PopupClosed(object sender, PopupClosedEventArgs e)
        {
            _subscriptionsOnOpen?.Dispose();
            _subscriptionsOnOpen = null;

            if (e.CloseEvent is PointerEventArgs pointerEvent)
            {
                pointerEvent.Handled = true;
            }

            if (CanFocus(this))
            {
                Focus();
            }
        }
コード例 #9
0
 private void grid_CurrentCellCloseDropDown(object sender, PopupClosedEventArgs e)
 {
     TraceUtil.TraceCurrentMethodInfoIf(traceDebug, this, e);
     AppendOutput("CurrentCellCloseDropDown", e);
 }
コード例 #10
0
 /// <summary>
 /// Hides the popup
 /// </summary>
 void popupHelper_PopupClosed(object sender, PopupClosedEventArgs e)
 {
     HideCollapsedBandPopup();
 }
コード例 #11
0
 private void ccSettingsPopup_PopupClosed(object sender, PopupClosedEventArgs e)
 {
     this.tvViewModel.CcDataChanged();
 }