Esempio n. 1
0
 private void PopupOpening(object sender, OpenPopupEventArgs e)
 {
     if ((sender as DateEdit).IsReadOnly)
     {
         Application.Current.Dispatcher.BeginInvoke(new Action(() =>
                                                               ((DateEdit)sender).CancelPopup()));
     }
 }
Esempio n. 2
0
        private void OnPopupOpening(object sender, OpenPopupEventArgs e)
        {
            // предотвращаем открытие, если Lookup IsReadOnly
            var lookUpEdit = sender as LookUpEdit;

            if (lookUpEdit != null)
            {
                e.Cancel = lookUpEdit.IsReadOnly;
            }
        }
        void PivotGridRadioFilter_PopupOpening(object sender, OpenPopupEventArgs e)
        {
            if (PivotField == null)
            {
                e.Cancel  = true;
                e.Handled = true;
                return;
            }
            this.BeginDataUpdate();

            var uniqueItems = PivotField.GetUniqueValues().Select(v => new PivotValueInfo()
            {
                Value = v, DisplayText = PivotField.GetDisplayText(v)
            }).ToArray();
            var editValue = PivotField.FilterValues.ValuesIncluded;

            ItemsSource = uniqueItems;

            this.EditValue = editValue;
            this.EndDataUpdate();
        }
Esempio n. 4
0
 private void OnPopupOpening(object sender, OpenPopupEventArgs e)
 {
     RefreshItems();
 }
 private void cbCategorys_PopupOpening(object sender, OpenPopupEventArgs e)
 {
     GetCategorys();
 }