wpf - Events for Listbox Item -


what recommended event use listbox items. have 3 static items in list , should navigate page upon clicking. know there's no click event listbox items or listbox. bind in view model. have in mind selected event, correct? method used binding how syntax of navigation when item selected? in advance!

<listbox x:name="lbviewlist">     <i:interaction.triggers>         <i:eventtrigger eventname="selected">             <command:eventtocommand command="{binding viewlistcommand}"/>         </i:eventtrigger>     </i:interaction.triggers>     <listbox.items>         <listboxitem content="by product" fontsize="25"/>         <listboxitem>by vendor</listboxitem>         <listboxitem>by best combination</listboxitem> 

there 2 listbox-events can achieve this:

in both cases can item through selectedindex or selecteditem property. hope gets on way.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -