5
Style
'da her bir ListBoxItem
için bir sağ tıklama ve sol tıklama komutu eklemek istiyorum. Mümkün mü?StyleBilgileri Tanımla
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="InputBindings">
<Setter.Value>
<MouseBinding Command="{x:Static View:Commands.AddItem}"
MouseAction="LeftClick"/>
<MouseBinding Command="{x:Static View:Commands.RemoveItem}"
MouseAction="RightClick"/>
</Setter.Value>
</Setter>
</Style>