Guest User

Untitled

a guest
Jul 21st, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. StackPanel pstkChannels = new StackPanel();
  2. ScrollViewer svcr = new ScrollViewer();
  3.  
  4. for (int i = 0; i < t.Columns.Count; i++)
  5. {
  6. CheckBox chkBox = new CheckBox();
  7. chkBox.Name = "chkChanDisp" + i.ToString();
  8. TextBlock k = new TextBlock();
  9. k.Text = t.Columns[i].ColumnName;
  10. //...
  11. chkBox.Content = k;
  12. chkBox.IsChecked = true;
  13. pstkChannels.Children.Add(chkBox);
  14. }
  15. svcr.Content = pstkChannels;
  16. grChanDisp.Children.Add(svcr);
Add Comment
Please, Sign In to add comment