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; } }
public void OnXamlRendered(FrameworkElement control) { _aadLoginControl = control.FindDescendantByName("AadLoginControl") as AadLogin; }