I can get items into and I can find all the items except the checkBox checked value. When the item is selected I would like to know if the checkBox is checked.
<!-- This is the listbox-->
<listbox name="lbTodoList" grid.row="3" removed="AliceBlue" horizontalcontentalignment="Stretch" selectionchanged="lbTodoList_SelectionChanged" keydown="lbTodoList_KeyDown"> <listbox.itemtemplate> <datatemplate>
<grid margin="1,2,2,0">
<grid.columndefinitions>
<columndefinition width="*"> <columndefinition width="Auto">
<grid.rowdefinitions>
<rowdefinition>
<rowdefinition>
<checkbox x:name="chkBox" fontweight="Bold" content="{Binding TrackRace}" checked="chkBox_Checked" xmlns:x="#unknown">
<textblock grid.column="1" fontweight="Bold" horizontalalignment="Right" text="{Binding RaceTime}">
/>
<textblock grid.row="1" text="{Binding RaceDist}">
<textblock grid.row="1" grid.column="1" horizontalalignment="Right" text="{Binding RaceClass}">
This is how I get the item data
foreach (object o in lbTodoList.SelectedItems)
{(o as TodoItem).TrackRace} but it just gives me the value "Bel #6" not if the box is checked or not.
I hope this is clear.
Thanks Ray: