i have a grid with checkboxes and textboxes, a list list1 as list(of Stuff) fills up the textboxes. prop1 is a property of Stuff
<Grid Name="MainGrid">
<ItemsControl ItemsSource="{Binding}">
<ItemsControl.ItemTemplate>
<DataTemplate>
<Grid Name="g1">
<CheckBox Grid.Column="0" Checked="CheckBox_Checked"/>
<TextBox Grid.Column="1" Name="TextBox1" Text="{Binding prop1}" />
</Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</Grid>
How can i use the checkboxes to make a new list of only the checked values?
EDIT: Fixed XAML(2)