Error “Specified element is already the logical child of another element”?

前端 未结 3 857
离开以前
离开以前 2021-02-13 12:22

I have a TabControl and each Tab can contain the same UI but with different data. In any tab the user can click on a button and bring up a popup. This sets a Style property to t

3条回答
  •  星月不相逢
    2021-02-13 13:09

    To not read all the above the short answer is: you need to change Content to Template (in your XAML either style or direct declaration of ContentControl).

提交回复
热议问题