Used twoStackPanel in window
I have used two stack panel in window but when I debug the application I get an error message. That message is 'Content' can only be sat once. How can I solve this?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Mamta MRank #268 · 9.4K reputationPosted Jun 5, 2011, 9:10 PM EDT
Nipun TomarRank #90 · 23K reputationPosted Jun 7, 2011, 1:08 AM EDT
I don knw how you have done this , but if you want to use two stackpanels in a single window, below is the code for it:
<Grid>
<StackPanel Background="Green" Margin="202,35,151,38" />
<StackPanel Margin="36,35,316,38" Background="Blue"/>
Grid>