In WPF, how to add an EventHandler for a FrameworkElement designed in Template?

后端 未结 5 1373
被撕碎了的回忆
被撕碎了的回忆 2021-01-06 11:12

I have defined the following DataTemplate for ListBox items in an external resource dictionary:



        
5条回答
  •  情话喂你
    2021-01-06 12:13

    Have a look at this question and answer.

    I think that using Commands is the best option.

    EDIT A good tutorial

提交回复
热议问题