-
Jan 16th, 2012, 12:31 AM
#1
Thread Starter
Fanatic Member
Add item to stack panel
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.
-
Jan 20th, 2012, 02:35 AM
#2
Thread Starter
Fanatic Member
Re: Add item to stack panel
-
Feb 28th, 2012, 04:02 PM
#3
Re: Add item to stack panel
If you name the stackpanel, you can add items to it using the .children property. It might be a nicer solution to use a itemslist and bind that to a ObeservableCollection<string> containing the texts that wil be in the textboxes
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|