C
C#2y ago
Mos

❔ XAML - The property 'Content' is set more than once

I recently began working with XAMl, but I'm can't get my head around with this error message "The Property Content is set more than once", would anyone be able to help me with this? When i delete code from line 132 to line 145 then it disappears, please see attached my code and help me
7 Replies
sibber
sibber2y ago
$code
MODiX
MODiX2y ago
To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/ To post C# code type the following: ```cs // code here ``` Get an example by typing $codegif in chat If your code is too long, post it to: https://paste.mod.gg/
Jimmacle
Jimmacle2y ago
you can only have one top-level control in your window so you need another container to put your Border elements in
Mos
MosOP2y ago
would you be able to show me in code how to add it?
Jimmacle
Jimmacle2y ago
it's the same way you put all the other elements in the specific container depends on the layout you're going for, a stackpanel is simplest
Mos
MosOP2y ago
Got it, I'll try it out thanks
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server