public SignInDialog() { #if SILVERLIGHT DefaultStyleKey = typeof(SignInDialog); #endif GenerateCredentialCommand = new GenerateCredentialCommandImpl(this); CancelCommand = new CancelCommandImpl(this); DataContext = this; }