c# - TreeView tab navigation -


i have usercontrol grid contain simple treeview. i'm able navigate in forward direction (tab) while in backwards direction (alt+tab) not working. (it's focus last button in item template). have suggestions?

    <treeview itemssource="{binding mylist}"           keyboardnavigation.tabnavigation="continue" tabindex="4" istabstop="false">    <treeview.itemcontainerstyle>     <style targettype="{x:type treeviewitem}">       <setter property="isexpanded" value="true" />       <setter property="keyboardnavigation.tabnavigation" value="continue"/>     </style>   </treeview.itemcontainerstyle>    <treeview.itemtemplate>     <hierarchicaldatatemplate itemssource="{binding mysublist}">       <textblock text="{binding name}" fontweight="bold"/>        <hierarchicaldatatemplate.itemtemplate>         <hierarchicaldatatemplate>           <grid keyboardnavigation.tabnavigation="local">              <grid.columndefinitions>               <columndefinition width="auto" sharedsizegroup="col1"/>               <columndefinition width="5"    sharedsizegroup="col2"/>               <columndefinition width="*"/>               <columndefinition width="auto"/>             </grid.columndefinitions>              <grid.rowdefinitions>               <rowdefinition height="auto"/>               <rowdefinition height="auto"/>               <rowdefinition height="auto"/>             </grid.rowdefinitions>              <gridsplitter grid.column="1" grid.rowspan="2147483647" width="5" horizontalalignment="left" verticalcontentalignment="stretch" istabstop="false"/>              <textblock grid.column="0" grid.row="0" text="text1"/>             <textbox   grid.column="2" grid.row="0" text="{binding text1, updatesourcetrigger=lostfocus}" tabindex="0"/>             <button    grid.column="3" grid.row="0" content="..." tabindex="1"/>           </grid>         </hierarchicaldatatemplate>       </hierarchicaldatatemplate.itemtemplate>     </hierarchicaldatatemplate>   </treeview.itemtemplate> </treeview> 


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -