Not upgrade Textblock


  public partial class Program
    {
        static GHI.Glide.Display.Window Window;
        static GHI.Glide.UI.TextBlock Temp;


        void ProgramStarted()
        {
            Window = GlideLoader.LoadWindow(Resources.GetString(Resources.StringResources.Window));
            GlideTouch.Initialize();
            Glide.FitToScreen = true;
            Glide.MainWindow = Window;
            GHI.Glide.UI.Button btnInfo = (GHI.Glide.UI.Button)Window.GetChildByName("btnInfo");


            Temp = (GHI.Glide.UI.TextBlock)Window.GetChildByName("lblTemp");


            btnInfo.TapEvent += new OnTap(btnInfo_TapEvent);

            Debug.Print("Program Started");
        }

        static void btnInfo_TapEvent(object sender)
        {
            Temp.Text = "000000000000";
            Temp.Invalidate();    
            Debug.Print("Information");
        }

text is inserted on top of an existing record

you must clear the textblock area before invalidating. see example from Glide source on Codeplex.

http://netmfglide.codeplex.com/SourceControl/latest#Glide/Examples/TextBlockExample.xml

1 Like

Try this before you update the text and then invalidate it