data binding - Bind textbox list inside listbox in wpf -
i have make listbox textbox in it... , has dynamic. have observable collection in code behind , want bind listbox. want dynamic listbox , list should have editable textbox in it. so, want bind multiplr textbox listbox. appreciated
<listbox horizontalalignment="left" name="listtwo" height="100" margin="286.769,165.499,0,0" verticalalignment="top" width="100" itemssource="{binding source=obs}"> <listbox.itemtemplate> <datatemplate> <textbox name="textboxlist"></textbox> </datatemplate> </listbox.itemtemplate> </listbox>
by doing this, have number of textbox same items in observable collection textbox's text not set up.
you have bind textbox property in class of observable collection have bound
<listbox horizontalalignment="left" name="listtwo" height="100" margin="286.769,165.499,0,0" verticalalignment="top" width="100" itemssource="{binding source=obs}"> <listbox.itemtemplate> <datatemplate> <textbox binding="{binding propertyinclass}"></textbox> </datatemplate> </listbox.itemtemplate> </listbox>
Comments
Post a Comment