Tuesday 15 July 2014

c# - how to add two different controls (checkbox and combobox) as list item in ListBox wpf -


I need to bind listbox with a list of recoverable items from the database. Each list item is displayed as a checkbox.

  & lt; ListBox.ItemTemplate & gt; & Lt; HierarchicalDataTemplate & gt; & Lt; Checkbox content = "{binding name}" isChecked = "{Isicheed binding}" /> & lt; / HierarchicalDataTemplate & gt; & Lt; /ListBox.ItemTemplate> With the   

checkbox, I also need to add a checkbox as a list box. Can anyone tell me how this can be done?

The amount of backend code to take care of all selections for this very small option within WPF. This helps you to use this code within any MVVM structure without any problem, and makes the front end very easy without engaging the back end code.



No comments:

Post a Comment