Beispiel #1
0
        /// <summary>
        /// Raises raises the LostFocus event.
        /// </summary>
        public virtual void OnLostFocus()
        {
            // Make a temporary copy of the event to avoid possibility of
            // a race condition if the last subscriber unsubscribes
            // immediately after the null check and before the event is raised.
            LostFocusHandler handler = LostFocus;

            if (handler != null)
            {
                handler();
            }
        }
Beispiel #2
0
 private void GnosisGridComboFieldWPF_LostFocus(object sender, RoutedEventArgs e)
 {
     LostFocusHandler.Invoke();
     HasFocus = false;
 }