Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- StackPanel pstkChannels = new StackPanel();
- ScrollViewer svcr = new ScrollViewer();
- for (int i = 0; i < t.Columns.Count; i++)
- {
- CheckBox chkBox = new CheckBox();
- chkBox.Name = "chkChanDisp" + i.ToString();
- TextBlock k = new TextBlock();
- k.Text = t.Columns[i].ColumnName;
- //...
- chkBox.Content = k;
- chkBox.IsChecked = true;
- pstkChannels.Children.Add(chkBox);
- }
- svcr.Content = pstkChannels;
- grChanDisp.Children.Add(svcr);
Add Comment
Please, Sign In to add comment