private void prepareTextFields() { var placeholderAttributes = new CTStringAttributes( new UIStringAttributes { ForegroundColor = UIColor.White.ColorWithAlpha(0.5f) }.Dictionary ); EmailTextField.ReturnKeyType = UIReturnKeyType.Next; EmailTextField.TintColor = UIColor.White; EmailTextField.AttributedPlaceholder = new NSAttributedString(Resources.LoginSignUpEmailPlaceholder, placeholderAttributes); PasswordTextField.ReturnKeyType = UIReturnKeyType.Next; PasswordTextField.TintColor = UIColor.White; PasswordTextField.AttributedPlaceholder = new NSAttributedString(Resources.LoginSignUpPasswordPlaceholder, placeholderAttributes); ForgotPasswordButton.SetTitle(Resources.LoginForgotPassword, UIControlState.Normal); var underscoreAttributes = new CTStringAttributes(new UIStringAttributes { UnderlineColor = UIColor.White, ForegroundColor = UIColor.White, UnderlineStyle = NSUnderlineStyle.Single, Font = UIFont.SystemFontOfSize(12, UIFontWeight.Medium) }.Dictionary); PrivacyPolicyButton.SetAttributedTitle( new NSAttributedString(Resources.PrivacyPolicy, underscoreAttributes), UIControlState.Normal); TermsOfServiceButton.SetAttributedTitle( new NSAttributedString(Resources.TermsOfService, underscoreAttributes), UIControlState.Normal); }
private void prepareTextFields() { var stringAttributes = new CTStringAttributes( new UIStringAttributes { ForegroundColor = UIColor.White.ColorWithAlpha(0.5f) }.Dictionary ); EmailTextField.TintColor = UIColor.White; EmailTextField.AttributedPlaceholder = new NSAttributedString(Resources.LoginSignUpEmailPlaceholder, stringAttributes); PasswordTextField.TintColor = UIColor.White; PasswordTextField.AttributedPlaceholder = new NSAttributedString(Resources.LoginSignUpPasswordPlaceholder, stringAttributes); ForgotPasswordButton.SetTitle(Resources.LoginForgotPassword, UIControlState.Normal); }