the property content is set more than once

后端 未结 1 1493
隐瞒了意图╮
隐瞒了意图╮ 2021-01-03 21:15

I am getting the following error with my code shown below.

Error:

The property \'Content\' is set more than once

Code:

1条回答
  •  悲&欢浪女
    2021-01-03 22:01

    A PanoramaItem can only have one child control but you currently have a TextBlock and a ListBox. To fix this, simply add another parent control to hold the TextBlock and ListBox (such as a StackPanel or a Grid). For example:

    
       
            
            
            
                
                     
                         
                             
                             
                             
                             
                                  
                                  
                             
                         
                      
                 
                           
        
    
    

    0 讨论(0)
提交回复
热议问题