TabItem in a separate XAML

后端 未结 4 1777
萌比男神i
萌比男神i 2020-12-01 06:04

Is it possible to put a TabItem into a separate XAML and reference something like this:


     

         


        
4条回答
  •  悲哀的现实
    2020-12-01 06:18

    I think what you wanted is to get TabItem Content declare separately. Since TabItem is a ContentControl you can present a UserControl as its content.

    
        
           
       
        
           
       
    
    

    In Separate XAML:

    
      <......blah blah.../>
    
    

    In another XAML you can have content 2

    
       <......blah blah.../>
    
    

提交回复
热议问题