//запрет редактирования private void cbLabel_EditValueChanging(object sender, DevExpress.Xpf.Editors.EditValueChangingEventArgs e) { if (e.OldValue != null) { e.IsCancel = true; } }
void txtEditor_EditValueChanging(object sender, DevExpress.Xpf.Editors.EditValueChangingEventArgs e) { if (string.IsNullOrEmpty(Convert.ToString(e.NewValue)) || string.IsNullOrWhiteSpace(Convert.ToString(e.NewValue))) { OKButton.IsEnabled = false; return; } else { OKButton.IsEnabled = true; } }
private void BrightnessTrackBar_EditValueChanging(object sender, DevExpress.Xpf.Editors.EditValueChangingEventArgs e) { SetBrightness((byte)BrightnessTrackBar.Value); }