Xamarin.Auth更改“身份验证"标题 [英] Xamarin.Auth change the "Authenticate" title
本文介绍了Xamarin.Auth更改“身份验证"标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道Xamarin.Auth显示(facebook等)登录屏幕时我是否可以本地化或仅更改标题"Authenticate"?
Anyone knows if i can localize or just change the title "Authenticate" when Xamarin.Auth shows (facebook etc) login screens?
谢谢!
推荐答案
好吧,花了几个小时后回答了我自己的问题,只是为了找出OAuth2Authenticator类是从Authenticator类继承而来的,它具有读/写属性Title ...
Okay, answering my own question after spending several hours, just to find out that OAuth2Authenticator class inherits from Authenticator class with a read/write property Title...
auth = new OAuth2Authenticator(
clientId: Constants.FacebookClientId,
scope: "email",
authorizeUrl: new Uri("https://www.facebook.com/v2.9/dialog/oauth"), // These values do not need changing
redirectUrl: new Uri("http://www.facebook.com/connect/login_success.html")// These values do not need changing
);
auth.AllowCancel = true; //back button allowed
auth.Title = "Facebook"; //pfffff :)
这篇关于Xamarin.Auth更改“身份验证"标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文