Binding a UserControl to a custom BusyIndicator control
问题 I have a requirement to focus on a specific textbox when a new view is loaded. The solution was to add this line of code to the OnLoaded event for the view: Dispatcher.BeginInvoke(() => { NameTextBox.Focus(); }); So this worked for one view, but not another. I spent some time debugging the problem and realized that the new view I was working on had a BusyIndicator that takes focus away from all controls since the BusyIndicator being set to true and false was occuring after the OnLoaded event.