Advertisement
Guest User

Untitled

a guest
Apr 17th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. ExpanderView newExpander = new ExpanderView();
  2. newExpander.Name = name;
  3. newExpander.Header = header;
  4. newExpander.FontSize = 40;
  5.  
  6. if (row == 0)
  7. newExpander.IsExpanded = true;
  8.  
  9. foreach (Item li in items)
  10. {
  11. CheckBox tb = new CheckBox();
  12. tb.Content = content;
  13. tb.FontSize = 20;
  14.  
  15. newExpander.Items.Add(tb);
  16. }
  17.  
  18.  
  19. MyGrid.Children.Add(newExpander);
  20. Grid.SetRow(newExpander, row);
  21.  
  22. <Grid x:Name="MyGrid">
  23. <Grid.RowDefinitions>
  24. <RowDefinition></RowDefinition>
  25. <RowDefinition></RowDefinition>
  26. <RowDefinition></RowDefinition>
  27. <RowDefinition></RowDefinition>
  28. </Grid.RowDefinitions>
  29. </Grid>
  30.  
  31. Grid.SetRow(newExpander, row);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement