WPF AutomationFocusChangedEventHandler the target element corresponds to UI that is no longer available (for example, the parent window has closed)

前端 未结 0 958
孤城傲影
孤城傲影 2020-11-28 05:55
private void OnFocusChanged(object sender, AutomationFocusChangedEventArgs e)
{
    try
    {
        AutomationElement focusedElement = sender as AutomationElement;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题