public void OnXamlRendered(FrameworkElement control)
        {
            if (_aadLoginControl != null)
            {
                _aadLoginControl.SignInFailed -= AadLoginControl_SignInFailed;
            }

            _aadLoginControl = control.FindDescendantByName("AadLoginControl") as AadLogin;

            if (_aadLoginControl != null)
            {
                _aadLoginControl.SignInFailed += AadLoginControl_SignInFailed;
            }
        }
Пример #2
0
 public void OnXamlRendered(FrameworkElement control)
 {
     _aadLoginControl = control.FindDescendantByName("AadLoginControl") as AadLogin;
 }