C
C#13mo 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
sibber13mo ago
$code
MODiX
MODiX13mo 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
Jimmacle13mo ago
you can only have one top-level control in your window so you need another container to put your Border elements in
Mos
Mos13mo ago
would you be able to show me in code how to add it?
Jimmacle
Jimmacle13mo 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
Mos13mo ago
Got it, I'll try it out thanks
Accord
Accord13mo 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
More Posts