【WPF】Listbox模板内button点击选中当前listboxItem

源:stackoverflow

--Listbox模板内按钮点击命令指定到挡墙vm内命令

Command="{Binding DataContext.PlusCmd,RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=ListBox}}"

 

posted @ 2018-05-28 10:17  oiliu  阅读(2970)  评论(0编辑  收藏  举报