Question How to add new formatted items to stack panel?

kiwis

Member
Joined
Apr 23, 2007
Messages
7
Programming Experience
Beginner
How can I in vb code add a new item to my stack panel?

The border, background etc are going to all be the same but the text box in the middle will have unique text.

as it will happen on a button click I can't write each one to XAML, the text will come via a DB feed.
 
Is this what you're looking for?

Dim myLabel As New Label
myLabel.Content = "your content here"
Me.StackPanel1.Children.Add(myLabel)
 
Back
Top