Results 1 to 3 of 3

Thread: Add item to stack panel

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    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.

  2. #2

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2009
    Location
    Milan
    Posts
    810

    Re: Add item to stack panel

    Any ideas?

  3. #3
    Frenzied Member Lightning's Avatar
    Join Date
    Oct 2002
    Location
    Eygelshoven
    Posts
    1,611

    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
    VB6 & C# (WCF LINQ) mostly


    If you need help with a WPF/WCF question post in the NEW WPF & WCF forum and we will try help the best we can

    My site

    My blog, couding troubles and solutions

    Free online tools

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width