'VisualTree' is set more than once

前端 未结 1 1149
名媛妹妹
名媛妹妹 2021-02-19 09:08

I keep getting an error in this xaml file:

The property \'VisualTree\' is set more than once.



        
相关标签:
1条回答
  • 2021-02-19 09:31

    DataTemplate can only have 1 child. you've got 2 (stackpanel and textblock). wrap those in single container and all will be well

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