Combobox binding in Datatemplate

后端 未结 2 1055
执笔经年
执笔经年 2021-01-26 03:40

Hi i am actually creating a WPF DataGrid Custom Control. What is want this combobos should show the genders in the combobox and what is heppening when i am keeping the combobox

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-26 04:09

    Try using this in your datatemplate -

    
    

    This will find the property Genders in the datacontext of your usercontrol which is DataSource.

提交回复
热议问题