Main Site Documentation

Not upgrade Textblock


#1

  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


#2

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


#3

Try this before you update the text and then invalidate it