当前位置:首页 > windos > 正文

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

源:stackoverflow

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

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