Event handler in DataTemplate

前端 未结 3 820
梦如初夏
梦如初夏 2020-12-16 02:23

I have WPF ComboBox inside a data template (a lot of comboboxes in listbox) and I want to handle enter button. It would be easy if it was e.g. a button - I would use Command

3条回答
  •  醉梦人生
    2020-12-16 02:54

    This article has a way to route any Event to Command

    http://nerobrain.blogspot.nl/2012/01/wpf-events-to-command.html

提交回复
热议问题