wpf - stackpanel xml parsed targets to go to a new row -


I have a stackpanel, using this stackpaneal, the parsed goal of XML is shown as a checkbox as shown. has gone.

  foreach (different child in stack 1.) (if the system is child. Windows control checkbox) & amp; ((System.Windows.Controls.CheckBox) child) IsChecked.Value) {masterbuildproperties.WriteLine ((System.Windows.Controls.CheckBox) child).);}}}   

this The stackpad is embedded in the grid control. XAM:

  & lt; StackPanel name = "Stack 1" grid. Line = "2" grid Column = "0" orientation = "horizontal" & gt; & Lt; / StackPanel & gt;   

My question is, how can I ensure that 7 checkboxes have been parsed, my 8th checkbox and above will go to a new row? Example is shown below:

  checkbox 1 checkbox 2 checkbox 3 checkbox 4 checkbox 5 checkbox 6 checkbox 7 checkbox 8 check box 9    

You can use it to get it.

Comments