Controlling the TabControl active tab with a ComboBox

前端 未结 4 789
北海茫月
北海茫月 2021-01-20 00:32

What i am really trying to achieve is to full control the active TabItem by using the combobox as the navigation control.

Here is what ive got so far:



        
4条回答
  •  醉梦人生
    2021-01-20 00:44

    If you're trying to control the TabControl from the Combo then it looks a bit backwards to me.. if you change the SelectedIndex on the tab control to bind it to the combo it should work:

    
            
                
            
            
                
            
        
    

提交回复
热议问题