•Krishna•
•Krishna•
CC#
Created by •Krishna• on 3/5/2024 in #help
How to change the button output. Instead of questions it should show some more buttons.
using System;
using System.Linq;
using NativeUiLib; //This ads the GUI contols. Minor abstractions over Xamarin.Android/Mono.Android
namespace Indian_Politics;

public static class Program
{
public static void Main()
{
int i = 1;
var lay = new LinearLayout();
var btn = lay.AddButton();
btn.Text = "Start";

btn.Click += delegate
{
btn.Text = i.ToString();
i++;
};

lay.Show();

}
}
using System;
using System.Linq;
using NativeUiLib; //This ads the GUI contols. Minor abstractions over Xamarin.Android/Mono.Android
namespace Indian_Politics;

public static class Program
{
public static void Main()
{
int i = 1;
var lay = new LinearLayout();
var btn = lay.AddButton();
btn.Text = "Start";

btn.Click += delegate
{
btn.Text = i.ToString();
i++;
};

lay.Show();

}
}
2 replies