Exemplo n.º 1
0
        public View loadPins(Guid currentProfile)
        {
            try
            {
                hwv.RemoveAllFunctions();
                hwv.RegisterNativeFunction("getPinGridValues", input =>
                {
                    return(getPinGridValues(input));
                });

                // The file associated with this can be whatever - makes no difference
                //using the previous example from the playground

                hwv.LoadFromContent("www/Pingrid.html");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message + " " + ex.InnerException + " " + ex.StackTrace);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// When overridden, allows application developers to customize behavior immediately prior to the <see cref="T:Xamarin.Forms.Page"/> becoming visible.
 /// </summary>
 /// <remarks>
 /// To be added.
 /// </remarks>
 protected override void OnAppearing()
 {
     base.OnAppearing();
     hwv.LoadFromContent("www/PinGrid.html");
 }