SIPSorcery.UIHelper.SetFocus C# (CSharp) Method

SetFocus() public static method

public static SetFocus ( Control control ) : void
control System.Windows.Controls.Control
return void
        public static void SetFocus(Control control)
        {
            if (control.Dispatcher.CheckAccess())
            {
                control.Focus();
            }
            else
            {
                control.Dispatcher.BeginInvoke(new SetFocusDelegate(SetFocus), control);
            }
        }