Skip to content

Instantly share code, notes, and snippets.

@tiagocrizanto
Created February 3, 2019 13:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tiagocrizanto/241ebb935bba5d309b96da95bc09bdbe to your computer and use it in GitHub Desktop.
Save tiagocrizanto/241ebb935bba5d309b96da95bc09bdbe to your computer and use it in GitHub Desktop.
public class HybridWebView : WebView
{
public HybridWebView()
{
}
public static readonly BindableProperty UsernameProperty =
BindableProperty.Create("UserName", typeof(string), typeof(HybridWebView), null, BindingMode.TwoWay);
public static readonly BindableProperty PasswordProperty =
BindableProperty.Create("Pwd", typeof(string), typeof(HybridWebView), null, BindingMode.TwoWay);
public string Username
{
get { return GetValue(UsernameProperty).ToString(); }
set { SetValue(UsernameProperty, value); }
}
public string Password
{
get { return GetValue(PasswordProperty).ToString(); }
set { SetValue(PasswordProperty, value); }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment