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

源:stackoverflow

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

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

猜你喜欢

转载自www.cnblogs.com/oiliu/p/9098747.html