Quantcast
Channel: WPF Identify UI Types in Grid
Viewing all articles
Browse latest Browse all 8

WPF Identify UI Types in Grid

$
0
0

Is there a way to scroll through each control in a WPF grid and identyify the type of control? Such as:

foreach (Control c ingrid.Children)
{
 if (c.GetType() == [textblock, button, etc.]
 {
  [Do something here.....] 
 }
}


Viewing all articles
Browse latest Browse all 8

Latest Images

Trending Articles





Latest Images