Skip to content

Instantly share code, notes, and snippets.

@mallibone
Created April 28, 2016 20:50
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 mallibone/4aa172ba473c0c7637921f966e5f7fb7 to your computer and use it in GitHub Desktop.
Save mallibone/4aa172ba473c0c7637921f966e5f7fb7 to your computer and use it in GitHub Desktop.
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
global::Xamarin.Forms.Forms.Init(this, bundle);
Xamarin.Forms.Forms.ViewInitialized += (object sender, Xamarin.Forms.ViewInitializedEventArgs e) => {
if (!string.IsNullOrWhiteSpace(e.View.AutomationId))
{
e.NativeView.ContentDescription = e.View.AutomationId;
}
};
LoadApplication(new App());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment