MetroListView Is Coming in MetroFramework


MetroListView Is Coming in MetroFramework

To all the people patiently waiting for MetroListView, your wait is almost over. The development MetroListView is almost done and it will be included in MetroFramework. The “View.Details” is almost finish the LargeIcon, List, SmallIcon and Tile is also done but need more refinement and more testing.  The most challenging part right now is to remove the flickering when it is being scrolled.  The scrollbar for this ListView is already the MetroScrollBar.

This is the code that I used to load some data to the ListView.

metroListView1.BeginUpdate();
metroListView1.Items.Clear();
metroListView1.View = View.Details;
// Add a column with width 20 and left alignment.
//Set Columns
metroListView1.Columns.Add("Col1");
metroListView1.Columns.Add("Col2");
metroListView1.Columns.Add("Col3");
metroListView1.Columns.Add("Col4");
metroListView1.Columns.Add("Col5");
metroListView1.CheckBoxes = true;

//Fill Rows
for (int i = 0; i < 1000; i++)
{
ListViewItem lvi;
lvi = new ListViewItem(new string[] { "Aaaaa Sample" + i, "Bbbbb" + i, "Cccccc" + i, "Ddddd" + +i, "Eeeee" + +i });
metroListView1.Items.Add(lvi);
metroListView1.Items[0].Checked = true;
}

metroListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
metroListView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize);
metroListView1.EndUpdate();
metroListView1.AllowSorting = true;


I used BeginUpdate and EndUpdate to make it loading faster. Be the first to get this update when it is available. Make sure to Subscribe to our YouTube Channel DenRic Denise – INFO or You can check out my GitHub account Dennis Magno

Liked it? Take a second to support denricdenise on Patreon!

You may also like...