Results 1 to 15 of 15

Thread: How to loop through a set of controls on a WPF Window

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2009
    Posts
    7

    How to loop through a set of controls on a WPF Window

    Hi, basically i need to loop through controls on WPF window and for perform actions with the control and gather data from it based on its type.
    I have done this before in windows forms, in WPF however i am having some problems.

    I'm afriad the actual code is at work and i won't be in till tomorrow, at which point i will update this thread with it.

    From my memory creating a loop such as this in Vb.net works fine.

    1 Code:
    1. For each c as control in Me.Controls
    2.  
    3. ...
    4.  
    5. Next

    However as WPF is different i tried using Me.content to no avail and other variations that threw an error.

    Ideas?
    Cheers
    Last edited by CJay; Sep 21st, 2009 at 11:32 AM.

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