i have a grid in which there are 4 progress bars,after 20 minutes my "first"progress bar goes to 65% and others still waiting to start..
wat i want is : after 65 % the first one should getting invisible and second one should start ..i have all these progress bars in a progress bars list..i start the first one from the list and so on... the problem which m facing is , after i tried to start the second one and make first one invisible the whole grid is getting hidden ...
plz make a reply.
Progress Bar added to list of progressbar
List<progressbar> list=new List<progressbar>();
private void gvTasklist_LoadingRow(object sender, System.Windows.Controls.DataGridRowEventArgs e)
ProgressBar pr = gvServicesonIp.Columns.GetCellContent(e.Row).FindName("prgServer1") as ProgressBar;
tx.Text = common.Servers[p];
tx.Tag = "tx" + i.ToString();
pr.Tag = "pg" + i.ToString();
On timer tick
private void Timer_Tick1(object sender, EventArgs e)
p1.Value += 1;
txt.Text = Convert.ToInt32(p1.Value).ToString() + "%";
Afer 20 minutes
ProgressBar px = p1[i - 1];
px.Visibility = Visibility.Collapsed;
This is when the whole grid becomes invisible