Issue
Here I am adding child elements to a stack:
s.Children.Add(
new Label() { Text1 = "ABC" }
);
s.Children.Add(
new Label() { Text1 = "ABC" }
);
Is there any way I can combine these two rows?
Solution
you can only Add
one at a time, but you can initialize with more than one
Children = {
new Label {Text = "Hello World!"},
new Button {Text = "Click Me!"}
}
Answered By - Jason
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.