Popup box - focus element when opened #3347
-
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            nicolaihenriksen
          
      
      
        Oct 27, 2023 
      
    
    Replies: 1 comment 1 reply
-
| @cocofaivre Perhaps not the cleanest of solutions, but this could be an option. Simply pushing a call to  private void PopupBox_Opened(object sender, RoutedEventArgs e)
{
    Dispatcher.BeginInvoke(() => { input_search_n.Focus(); });
} | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
      Answer selected by
        cocofaivre
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
@cocofaivre Perhaps not the cleanest of solutions, but this could be an option. Simply pushing a call to
Focus()onto the back of the UI message pump: