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); }
void ReleaseDesignerOutlets() { if (FacebookButton != null) { FacebookButton.Dispose(); FacebookButton = null; } if (InstagramButton != null) { InstagramButton.Dispose(); InstagramButton = null; } if (LinkedinButton != null) { LinkedinButton.Dispose(); LinkedinButton = null; } if (PrivacyPolicyButton != null) { PrivacyPolicyButton.Dispose(); PrivacyPolicyButton = null; } if (SeekiosButton != null) { SeekiosButton.Dispose(); SeekiosButton = null; } if (TwitterButton != null) { TwitterButton.Dispose(); TwitterButton = null; } if (VersionLabel != null) { VersionLabel.Dispose(); VersionLabel = null; } }
void ReleaseDesignerOutlets() { if (ActivityIndicator != null) { ActivityIndicator.Dispose(); ActivityIndicator = null; } if (BottomConstraint != null) { BottomConstraint.Dispose(); BottomConstraint = null; } if (EmailTextField != null) { EmailTextField.Dispose(); EmailTextField = null; } if (InfoLabel != null) { InfoLabel.Dispose(); InfoLabel = null; } if (ForgotPasswordButton != null) { ForgotPasswordButton.Dispose(); ForgotPasswordButton = null; } if (PasswordManagerButton != null) { PasswordManagerButton.Dispose(); PasswordManagerButton = null; } if (PasswordTextField != null) { PasswordTextField.Dispose(); PasswordTextField = null; } if (PrivacyPolicyButton != null) { PrivacyPolicyButton.Dispose(); PrivacyPolicyButton = null; } if (ShowPasswordButton != null) { ShowPasswordButton.Dispose(); ShowPasswordButton = null; } if (SignUpLabels != null) { SignUpLabels.Dispose(); SignUpLabels = null; } if (TermsOfServiceButton != null) { TermsOfServiceButton.Dispose(); TermsOfServiceButton = null; } }
public override void SetDataAndStyleToView() { Title = Application.LocalizedString("About"); PrivacyPolicyButton.SetTitle(Application.LocalizedString("PrivacyPolicy"), UIControlState.Normal); VersionLabel.Text = NSBundle.MainBundle.InfoDictionary["CFBundleVersion"].ToString(); }