1. 程式人生 > >【WPF】Listbox模板內button點擊選中當前listboxItem

【WPF】Listbox模板內button點擊選中當前listboxItem

span item man sta href targe comm cte flow

源:stackoverflow

--Listbox模板內按鈕點擊命令指定到擋墻vm內命令

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

【WPF】Listbox模板內button點擊選中當前listboxItem