Skip to content
Discussion options

You must be logged in to vote

Yes, is possible. But be aware that you have to always binding the actual selected item to the guid. To display custom data you must implement a class for that and overriding the ToString method. You can add buttons on the right side to Add, Remove and Edit to manipulate items.

	Application.Init ();
	var t = Application.Top;

	List<Product> products = new List<Product> ();
	products.Add (new Product (0, Guid.NewGuid (), "Laptop"));
	products.Add (new Product (0, Guid.NewGuid (), "Desktop"));
	products.Add (new Product (0, Guid.NewGuid (), "Printer"));

	var lv = new ListView (products) {
		Width = Dim.Percent (80),
		Height = Dim.Fill (2)
	};
	var lbl = new Label () {
		Y = Pos.Bottom (lv) +

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ben2146053
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants