private void Combobox_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (!SelectionFromUser) { SelectionFromUser = true; return; } SelectionCommitted?.Invoke(this, e); }
protected virtual void OnSelectionCommitted() { SelectionCommitted?.Invoke(this, EventArgs.Empty); }