Exemple #1
0
 private void input_LostFocus(object sender, RoutedEventArgs e)
 {
     if (FocusChecker.IsLogicFocusOutside(this) && FocusChecker.IsLogicFocusOutside(popup.Child))
     {
         HidePopup();
     }
 }
Exemple #2
0
 private void UserControl_LostFocus(object sender, RoutedEventArgs e)
 {
     if (FocusChecker.IsLogicFocusOutside(this)
         // && FocusChecker.IsFocusOutsideDepObject(popup.Child)
         )
     {
         HidePopup();
     }
 }
Exemple #3
0
        // helpers

        private bool IsFocusOutside()
        {
            return(FocusChecker.IsLogicFocusOutside(this) && FocusChecker.IsLogicFocusOutside(popup.Child));
        }